Skip to content

Commit 80e8d4f

Browse files
committed
Remove unnecessary copying
1 parent aa4a31d commit 80e8d4f

File tree

1 file changed

+1
-1
lines changed
  • crates/matrix-sdk-crypto/src/verification/sas

1 file changed

+1
-1
lines changed

crates/matrix-sdk-crypto/src/verification/sas/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ pub fn get_mac_content(sas: &OlmSas, ids: &SasIds, flow_id: &FlowId) -> Outgoing
321321

322322
// TODO Add the cross signing master key here if we trust/have it.
323323

324-
let mut keys = mac.keys().cloned().collect::<Vec<String>>();
324+
let mut keys: Vec<_> = mac.keys().map(|s| s.as_str()).collect();
325325
keys.sort();
326326
let keys = sas
327327
.calculate_mac(&keys.join(","), &format!("{}KEY_IDS", &info))

0 commit comments

Comments
 (0)