Fix a bunch of clippy lints
This commit is contained in:
parent
364820aae4
commit
a6bb9bbe68
8 changed files with 77 additions and 85 deletions
|
@ -644,7 +644,7 @@ impl Database {
|
|||
|
||||
if db.globals.database_version()? < 9 {
|
||||
// Update tokenids db layout
|
||||
let batch = db
|
||||
let mut iter = db
|
||||
.rooms
|
||||
.tokenids
|
||||
.iter()
|
||||
|
@ -672,9 +672,7 @@ impl Database {
|
|||
println!("new {:?}", new_key);
|
||||
Some((new_key, Vec::new()))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let mut iter = batch.into_iter().peekable();
|
||||
.peekable();
|
||||
|
||||
while iter.peek().is_some() {
|
||||
db.rooms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue