From 2995cebd579c0d2491f0c0101026e149c50c31b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 26 Aug 2020 13:50:28 +0200 Subject: [PATCH] matrix-sdk: Fix some clippy issues. --- matrix_sdk/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index be0db356..2b6e221f 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -1196,7 +1196,7 @@ impl Client { C: Future, { let mut sync_settings = sync_settings; - let filter = sync_settings.filter.clone(); + let filter = sync_settings.filter; let mut last_sync_time: Option = 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); } } }