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() }