]> Untitled Git - bdk/commitdiff
complying with clippy from the github CI
authorRichard Ulrich <richi@paraeasy.ch>
Tue, 20 Oct 2020 16:22:37 +0000 (18:22 +0200)
committerRichard Ulrich <richi@paraeasy.ch>
Tue, 20 Oct 2020 16:22:37 +0000 (18:22 +0200)
src/wallet/tx_builder.rs

index d693f7714c0d41e2a7fd880596666298208812fe..65560a0590b8a10900467dbaa8c85efd8177ba48 100644 (file)
@@ -321,10 +321,7 @@ impl<D: Database, Cs: CoinSelectionAlgorithm<D>> TxBuilder<D, Cs> {
         if self.fee_policy.is_none() {
             return false;
         };
-        match self.fee_policy.as_ref().unwrap() {
-            FeePolicy::FeeAmount(_) => true,
-            _ => false,
-        }
+        matches!(self.fee_policy.as_ref().unwrap(), FeePolicy::FeeAmount(_))
     }
 }