Skip to content

Commit

Permalink
Merge pull request #433 from ratmice/update_clippy
Browse files Browse the repository at this point in the history
update clippy
  • Loading branch information
ltratt authored Dec 29, 2023
2 parents 13e217c + 34b0084 commit 62b9c4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lrlex/src/lib/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![];
let current_state = all_states.get(0).unwrap();
let current_state = &all_states[0];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand All @@ -904,7 +904,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![];
let current_state = all_states.get(1).unwrap();
let current_state = &all_states[1];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand All @@ -919,7 +919,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![0];
let current_state = all_states.get(0).unwrap();
let current_state = &all_states[0];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand All @@ -934,7 +934,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![1];
let current_state = all_states.get(1).unwrap();
let current_state = &all_states[1];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand All @@ -949,7 +949,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![1];
let current_state = all_states.get(0).unwrap();
let current_state = &all_states[0];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand All @@ -964,7 +964,7 @@ b 'B'
StartState::new(1, "EXCLUSIVE", true, Span::new(0, 0)),
];
let rule_states = vec![0];
let current_state = all_states.get(1).unwrap();
let current_state = &all_states[1];
let m = LRNonStreamingLexerDef::<DefaultLexerTypes<u8>>::state_matches(
current_state,
&rule_states,
Expand Down

0 comments on commit 62b9c4e

Please sign in to comment.