crytpo: Remove an unneeded map/clone.

master
Damir Jelić 2020-10-01 12:46:09 +02:00
parent bcdcdeb259
commit fc6ff2c78a
1 changed files with 1 additions and 6 deletions

View File

@ -159,12 +159,7 @@ impl GroupSessionManager {
for user_id in session.users_to_share_with() { for user_id in session.users_to_share_with() {
let user_devices = self.store.get_user_devices(&user_id).await?; let user_devices = self.store.get_user_devices(&user_id).await?;
devices.extend( devices.extend(user_devices.devices().filter(|d| !d.is_blacklisted()));
user_devices
.devices()
.map(|d| d.clone())
.filter(|d| !d.is_blacklisted()),
)
} }
let mut requests = Vec::new(); let mut requests = Vec::new();