Skip to content

Commit c6594ed

Browse files
committed
Use faster sorting algorithm
… because Clippy complained.
1 parent 80e8d4f commit c6594ed

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
@@ -322,7 +322,7 @@ pub fn get_mac_content(sas: &OlmSas, ids: &SasIds, flow_id: &FlowId) -> Outgoing
322322
// TODO Add the cross signing master key here if we trust/have it.
323323

324324
let mut keys: Vec<_> = mac.keys().map(|s| s.as_str()).collect();
325-
keys.sort();
325+
keys.sort_unstable();
326326
let keys = sas
327327
.calculate_mac(&keys.join(","), &format!("{}KEY_IDS", &info))
328328
.expect("Can't calculate SAS MAC");

0 commit comments

Comments
 (0)