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

@ -335,7 +335,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 {