Skip to content

Commit

Permalink
Fix clippy warnings that only show up when run from push (!?)
Browse files Browse the repository at this point in the history
  • Loading branch information
NSoiffer committed Dec 20, 2023
1 parent b129b63 commit fc01b63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/canonicalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/navigate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/speech.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
};

Expand Down

0 comments on commit fc01b63

Please sign in to comment.