Fix clippy linting (#115)

* Fix clippy

(This was fixed via `cargo clippy --fix`)

* Fmt
This commit is contained in:
Erik Johnston
2023-03-27 12:00:32 +01:00
committed by GitHub
parent 923ca65f67
commit f4d96c73a8
3 changed files with 5 additions and 11 deletions

View File

@@ -237,15 +237,9 @@ fn load_map_from_db(
let mut missing_sgs: Vec<_> = state_group_map
.iter()
.filter_map(|(_sg, entry)| {
if let Some(prev_sg) = entry.prev_state_group {
if state_group_map.contains_key(&prev_sg) {
None
} else {
Some(prev_sg)
}
} else {
None
}
entry
.prev_state_group
.filter(|&prev_sg| !state_group_map.contains_key(&prev_sg))
})
.collect();