Suppress an annoying warning about non-camel-case types

This commit is contained in:
Peter Ammon 2024-06-16 11:49:09 -07:00
parent 376bdb16c7
commit 5cc9e0187e
No known key found for this signature in database

View File

@ -2145,6 +2145,7 @@ impl ReaderData {
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 @@ impl ReaderData {
/// 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,