From 6b5ba35d5b3a6861b2f32105778aea7f706429f1 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 24 Jun 2021 11:16:30 +0200 Subject: [PATCH] make clippy happy --- src/qr.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/qr.rs b/src/qr.rs index 5646eb067..93f49f6d8 100644 --- a/src/qr.rs +++ b/src/qr.rs @@ -202,12 +202,10 @@ async fn decode_openpgp(context: &Context, qr: &str) -> Lot { } else { LotState::QrWithdrawVerifyGroup } + } else if lot.state == LotState::QrAskVerifyContact { + LotState::QrReviveVerifyContact } else { - if lot.state == LotState::QrAskVerifyContact { - LotState::QrReviveVerifyContact - } else { - LotState::QrReviveVerifyGroup - } + LotState::QrReviveVerifyGroup } } }