From fc01b63808b60d36a43e07c63228ed973188f37a Mon Sep 17 00:00:00 2001 From: NSoiffer Date: Wed, 20 Dec 2023 19:20:38 +0000 Subject: [PATCH] Fix clippy warnings that only show up when run from push (!?) --- src/canonicalize.rs | 1 - src/navigate.rs | 2 +- src/speech.rs | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/canonicalize.rs b/src/canonicalize.rs index bc4a7cd0..ab933bfb 100644 --- a/src/canonicalize.rs +++ b/src/canonicalize.rs @@ -99,7 +99,6 @@ lazy_static!{ // Operators are either PREFIX, INFIX, or POSTFIX, but can also have other properties such as LEFT_FENCE bitflags! { struct OperatorTypes: u32 { - const NONE = 0x0; const PREFIX = 0x1; const INFIX = 0x2; const POSTFIX = 0x4; diff --git a/src/navigate.rs b/src/navigate.rs index adcef289..38b6ef16 100644 --- a/src/navigate.rs +++ b/src/navigate.rs @@ -690,7 +690,7 @@ fn key_press_to_command_and_param( command = NavigationCommand::Exit; param = NavigationParam::Last; }, - 0x30|0x31|0x32|0x33|0x34|0x35|0x36|0x37|0x38|0x39 => { // '0' ... '9' + 0x30..=0x39 => { // '0' ... '9' command = choose_command(shift_key, control_key, NavigationCommand::Move, NavigationCommand::Read, NavigationCommand::SetPlacemarker, NavigationCommand::Describe); static PLACE_MARKER: &[NavigationParam] = &[ NavigationParam::Placemarker0, diff --git a/src/speech.rs b/src/speech.rs index a1e9db77..af055977 100644 --- a/src/speech.rs +++ b/src/speech.rs @@ -1945,8 +1945,8 @@ impl SpeechRules { ) } else { ( - SPEECH_UNICODE_SHORT.with( |unicode| Rc::clone( unicode) ), - SPEECH_UNICODE_FULL. with( |unicode| Rc::clone( unicode) ) + SPEECH_UNICODE_SHORT.with(Rc::clone), + SPEECH_UNICODE_FULL. with(Rc::clone) ) };