From 792623f53d352fc77c281264e7270dcd0d3529de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 27 Jul 2020 15:57:30 +0200 Subject: [PATCH] crypto: Fix a clippy warning. --- matrix_sdk_crypto/src/verification/sas.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/verification/sas.rs b/matrix_sdk_crypto/src/verification/sas.rs index 9be5cb01..e7bdc9fe 100644 --- a/matrix_sdk_crypto/src/verification/sas.rs +++ b/matrix_sdk_crypto/src/verification/sas.rs @@ -464,7 +464,7 @@ impl SasState { } fn check_sender_and_txid(&self, sender: &UserId, flow_id: &str) -> Result<(), CancelCode> { - if flow_id != &*self.verification_flow_id { + if flow_id != *self.verification_flow_id { Err(CancelCode::UnknownTransaction) } else if sender != self.ids.other_device.user_id() { Err(CancelCode::UserMismatch)