From 34b0084651d38b7089d0a1be4e31bf6613c2896c Mon Sep 17 00:00:00 2001 From: matt rice Date: Fri, 29 Dec 2023 01:04:52 -0800 Subject: [PATCH] update clippy --- lrlex/src/lib/lexer.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lrlex/src/lib/lexer.rs b/lrlex/src/lib/lexer.rs index 960330cef..88e3e9cad 100644 --- a/lrlex/src/lib/lexer.rs +++ b/lrlex/src/lib/lexer.rs @@ -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::>::state_matches( current_state, &rule_states, @@ -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::>::state_matches( current_state, &rule_states, @@ -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::>::state_matches( current_state, &rule_states, @@ -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::>::state_matches( current_state, &rule_states, @@ -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::>::state_matches( current_state, &rule_states, @@ -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::>::state_matches( current_state, &rule_states,