mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
enable if_then_some_else_none lint
This commit is contained in:
parent
bd6ea4e358
commit
52c2893073
4 changed files with 27 additions and 44 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue