From 0d2f8c6d0f5494a35901b7e72fce9191525b010b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 11 Aug 2020 16:01:48 +0200 Subject: [PATCH] crypto: Fix some clippy warnings. --- matrix_sdk_crypto/src/store/memorystore.rs | 1 + matrix_sdk_crypto/src/store/sqlite.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/matrix_sdk_crypto/src/store/memorystore.rs b/matrix_sdk_crypto/src/store/memorystore.rs index 4ad08cc0..d901e0b5 100644 --- a/matrix_sdk_crypto/src/store/memorystore.rs +++ b/matrix_sdk_crypto/src/store/memorystore.rs @@ -85,6 +85,7 @@ impl CryptoStore for MemoryStore { } fn users_for_key_query(&self) -> HashSet { + #[allow(clippy::map_clone)] self.users_for_key_query.iter().map(|u| u.clone()).collect() } diff --git a/matrix_sdk_crypto/src/store/sqlite.rs b/matrix_sdk_crypto/src/store/sqlite.rs index 5fd4e3be..ede11f5c 100644 --- a/matrix_sdk_crypto/src/store/sqlite.rs +++ b/matrix_sdk_crypto/src/store/sqlite.rs @@ -825,6 +825,7 @@ impl CryptoStore for SqliteStore { } fn users_for_key_query(&self) -> HashSet { + #[allow(clippy::map_clone)] self.users_for_key_query.iter().map(|u| u.clone()).collect() }