mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Suppress an annoying warning about non-camel-case types
This commit is contained in:
@@ -2145,6 +2145,7 @@ fn handle_char_event(&mut self, injected_event: Option<CharEvent>) -> ControlFlo
|
||||
|
||||
impl ReaderData {
|
||||
fn handle_readline_command(&mut self, c: ReadlineCmd) {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
match c {
|
||||
rl::BeginningOfLine => {
|
||||
@@ -4638,6 +4639,7 @@ fn expand_abbreviation_at_cursor(&mut self, cursor_backtrack: usize) -> bool {
|
||||
|
||||
/// Indicates if the given command char ends paging.
|
||||
fn command_ends_paging(c: ReadlineCmd, focused_on_search_field: bool) -> bool {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
match c {
|
||||
rl::HistoryPrefixSearchBackward
|
||||
@@ -4720,6 +4722,7 @@ fn command_ends_paging(c: ReadlineCmd, focused_on_search_field: bool) -> bool {
|
||||
|
||||
/// Indicates if the given command ends the history search.
|
||||
fn command_ends_history_search(c: ReadlineCmd) -> bool {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
!matches!(
|
||||
c,
|
||||
|
||||
Reference in New Issue
Block a user