From 2ec88932737a5ed87a5e26fb489524a2dcf6acc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 4 Jun 2021 15:39:56 +0200 Subject: [PATCH] crypto: Silence a clippy warning until we add QR code verifications --- matrix_sdk_crypto/src/verification/machine.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_sdk_crypto/src/verification/machine.rs b/matrix_sdk_crypto/src/verification/machine.rs index 24563150..bb3b653f 100644 --- a/matrix_sdk_crypto/src/verification/machine.rs +++ b/matrix_sdk_crypto/src/verification/machine.rs @@ -61,6 +61,7 @@ impl VerificationCache { self.verification .iter() .filter_map(|s| { + #[allow(irrefutable_let_patterns)] if let Verification::SasV1(s) = s.value() { s.cancel_if_timed_out().map(|r| OutgoingRequest { request_id: r.request_id(), @@ -75,6 +76,7 @@ impl VerificationCache { pub fn get_sas(&self, transaction_id: &str) -> Option { self.verification.get(transaction_id).and_then(|v| { + #[allow(irrefutable_let_patterns)] if let Verification::SasV1(sas) = v.value() { Some(sas.clone()) } else {