Skip to content

Commit

Permalink
update clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed Dec 29, 2023
1 parent 8601fcf commit 34b0084
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 @@ -888,7 +888,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 @@ -903,7 +903,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 @@ -918,7 +918,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 @@ -933,7 +933,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 @@ -948,7 +948,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 @@ -963,7 +963,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 34b0084

Please sign in to comment.