crypto: Silence a clippy warning until we add QR code verifications
parent
bd5dda370d
commit
2ec8893273
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue