Skip to content

Commit abf5253

Browse files
committed
Fix clippy warning (remove unnecessary clone)
1 parent fea8084 commit abf5253

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/matrix-sdk-crypto/src/verification/requests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ impl VerificationRequest {
525525
if let OutgoingContent::ToDevice(c) = cancel_content {
526526
let recipients: Vec<Box<DeviceId>> = self
527527
.recipient_devices
528-
.to_vec()
529-
.into_iter()
530-
.filter(|d| if let Some(device) = filter_device { &**d != device } else { true })
528+
.iter()
529+
.filter(|&d| if let Some(device) = filter_device { **d != *device } else { true })
530+
.cloned()
531531
.collect();
532532

533533
// We don't need to notify anyone if no recipients were present

0 commit comments

Comments
 (0)