enable if_then_some_else_none lint

This commit is contained in:
Charles Hall 2024-05-12 16:41:54 -07:00
parent bd6ea4e358
commit 52c2893073
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 27 additions and 44 deletions

View file

@ -763,13 +763,7 @@ impl KeyValueDatabase {
let batch2: Vec<_> = db
.tokenids
.iter()
.filter_map(|(key, _)| {
if key.starts_with(b"!") {
Some(key)
} else {
None
}
})
.filter_map(|(key, _)| key.starts_with(b"!").then_some(key))
.collect();
for key in batch2 {