matrix-sdk: Fix some clippy issues.

master
Damir Jelić 2020-08-26 13:50:28 +02:00
parent ea4befabd9
commit 2995cebd57
1 changed files with 2 additions and 2 deletions

View File

@ -1196,7 +1196,7 @@ impl Client {
C: Future<Output = ()>,
{
let mut sync_settings = sync_settings;
let filter = sync_settings.filter.clone();
let filter = sync_settings.filter;
let mut last_sync_time: Option<Instant> = None;
if sync_settings.token.is_none() {
@ -1263,7 +1263,7 @@ impl Client {
.expect("No sync token found after initial sync"),
);
if let Some(f) = filter.as_ref() {
sync_settings = sync_settings.filter(f.clone());
sync_settings = sync_settings.filter(*f);
}
}
}