From a1edef0ed51ae2ab39d8c1cbb9f4a5db2d7fce60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 23 Jul 2020 14:47:47 +0200 Subject: [PATCH] crypto: Fix some clippy warnings. --- matrix_sdk_crypto/src/verification/mod.rs | 2 +- matrix_sdk_crypto/src/verification/sas.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, } } }