Mercurial > lbo > hg > rex
changeset 94:9782e6ccbfe5
Run cargo fmt
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 10 Dec 2020 08:56:03 +0100 |
parents | aef33867ba50 |
children | eb1cd07d7830 |
files | src/matching.rs |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/matching.rs Wed Dec 09 22:57:54 2020 +0100 +++ b/src/matching.rs Thu Dec 10 08:56:03 2020 +0100 @@ -207,14 +207,20 @@ let nextst = matchst.fork(next1.unwrap(), advance_by); states_map_next.entry(state_key(&nextst)).or_insert(nextst); matchst.update(next2.unwrap(), advance_by); - states_map_next.entry(state_key(&matchst)).or_insert(matchst); + states_map_next + .entry(state_key(&matchst)) + .or_insert(matchst); } else if let Some(n1) = next1 { // Reuse current state if only one successor (common case). matchst.update(n1, advance_by); - states_map_next.entry(state_key(&matchst)).or_insert(matchst); + states_map_next + .entry(state_key(&matchst)) + .or_insert(matchst); } else if let Some(n2) = next2 { matchst.update(n2, advance_by); - states_map_next.entry(state_key(&matchst)).or_insert(matchst); + states_map_next + .entry(state_key(&matchst)) + .or_insert(matchst); } } // Swap state lists, leaving states_next empty.