Merge branch 'clippy' into 'master'
Fix a bunch of clippy lints See merge request famedly/conduit!178
This commit is contained in:
commit
8518d59a0b
8 changed files with 77 additions and 85 deletions
|
@ -655,7 +655,7 @@ impl Database {
|
|||
|
||||
if db.globals.database_version()? < 9 {
|
||||
// Update tokenids db layout
|
||||
let batch = db
|
||||
let mut iter = db
|
||||
.rooms
|
||||
.tokenids
|
||||
.iter()
|
||||
|
@ -683,9 +683,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