crypto: Silence a clippy warning until we add QR code verifications

master
Damir Jelić 2021-06-04 15:39:56 +02:00
parent bd5dda370d
commit 2ec8893273
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ impl VerificationCache {
self.verification self.verification
.iter() .iter()
.filter_map(|s| { .filter_map(|s| {
#[allow(irrefutable_let_patterns)]
if let Verification::SasV1(s) = s.value() { if let Verification::SasV1(s) = s.value() {
s.cancel_if_timed_out().map(|r| OutgoingRequest { s.cancel_if_timed_out().map(|r| OutgoingRequest {
request_id: r.request_id(), request_id: r.request_id(),
@ -75,6 +76,7 @@ impl VerificationCache {
pub fn get_sas(&self, transaction_id: &str) -> Option<Sas> { pub fn get_sas(&self, transaction_id: &str) -> Option<Sas> {
self.verification.get(transaction_id).and_then(|v| { self.verification.get(transaction_id).and_then(|v| {
#[allow(irrefutable_let_patterns)]
if let Verification::SasV1(sas) = v.value() { if let Verification::SasV1(sas) = v.value() {
Some(sas.clone()) Some(sas.clone())
} else { } else {