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 {