crypto: Fix some clippy warnings.

master
Damir Jelić 2020-08-11 16:01:48 +02:00
parent fa1a40543c
commit 0d2f8c6d0f
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ impl CryptoStore for MemoryStore {
}
fn users_for_key_query(&self) -> HashSet<UserId> {
#[allow(clippy::map_clone)]
self.users_for_key_query.iter().map(|u| u.clone()).collect()
}

View File

@ -825,6 +825,7 @@ impl CryptoStore for SqliteStore {
}
fn users_for_key_query(&self) -> HashSet<UserId> {
#[allow(clippy::map_clone)]
self.users_for_key_query.iter().map(|u| u.clone()).collect()
}