Fix a bunch of clippy lints

This commit is contained in:
Jonas Platte 2021-08-31 21:20:03 +02:00
parent 364820aae4
commit a6bb9bbe68
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
8 changed files with 77 additions and 85 deletions

View file

@ -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