diff --git a/matrix_sdk_crypto/src/verification/mod.rs b/matrix_sdk_crypto/src/verification/mod.rs index 45d7b935..ed0c16ed 100644 --- a/matrix_sdk_crypto/src/verification/mod.rs +++ b/matrix_sdk_crypto/src/verification/mod.rs @@ -134,7 +134,7 @@ fn receive_mac_event( } for (key_id, key_mac) in &event.content.mac { - let split: Vec<&str> = key_id.splitn(2, ":").collect(); + let split: Vec<&str> = key_id.splitn(2, ':').collect(); if split.len() != 2 { continue; diff --git a/matrix_sdk_crypto/src/verification/sas.rs b/matrix_sdk_crypto/src/verification/sas.rs index ebc94f02..a4f61c3f 100644 --- a/matrix_sdk_crypto/src/verification/sas.rs +++ b/matrix_sdk_crypto/src/verification/sas.rs @@ -48,7 +48,7 @@ impl From for AcceptedProtocols { hash: content.hash, key_agreement_protocol: content.key_agreement_protocol, message_auth_code: content.message_authentication_code, - short_auth_string: content.short_authentication_string.clone(), + short_auth_string: content.short_authentication_string, } } }