diff options
Diffstat (limited to 'src/parse/regex/dfa.rs')
| -rw-r--r-- | src/parse/regex/dfa.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/regex/dfa.rs b/src/parse/regex/dfa.rs index aba6238..7e5be7b 100644 --- a/src/parse/regex/dfa.rs +++ b/src/parse/regex/dfa.rs @@ -14,6 +14,7 @@ pub struct State { accept: bool, } +#[allow(clippy::upper_case_acronyms)] pub struct DFA { start: StateId, states: Vec<State>, @@ -94,7 +95,7 @@ impl From<ENFA> for DFA { .collect(); for ms in multi_states.iter() { - let i: usize = multi_to_dfa[&ms]; + let i: usize = multi_to_dfa[ms]; states[i].accept = ms.accept(); for t in ms.possible_transitions() { let k = multi_to_dfa[&ms.transition(t)]; |
