Merge branch 'clippy' into 'master'

Fix a bunch of clippy lints

See merge request famedly/conduit!178
This commit is contained in:
Timo Kösters 2021-09-01 10:47:23 +00:00
commit 8518d59a0b
8 changed files with 77 additions and 85 deletions

View file

@ -356,7 +356,7 @@ async fn sync_helper(
true,
state_events,
)
} else if timeline_pdus.len() == 0 && since_shortstatehash == Some(current_shortstatehash) {
} else if timeline_pdus.is_empty() && since_shortstatehash == Some(current_shortstatehash) {
// No state changes
(Vec::new(), None, None, false, Vec::new())
} else {