diff --git a/src/reader.rs b/src/reader.rs index 0945cdf5e..36b8fa305 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2145,6 +2145,7 @@ fn handle_char_event(&mut self, injected_event: Option) -> 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,