From 759f6eac43a4a555c6f5383c10892557a114b255 Mon Sep 17 00:00:00 2001 From: Richard Ulrich Date: Tue, 20 Oct 2020 18:22:37 +0200 Subject: [PATCH] complying with clippy from the github CI --- src/wallet/tx_builder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wallet/tx_builder.rs b/src/wallet/tx_builder.rs index d693f771..65560a05 100644 --- a/src/wallet/tx_builder.rs +++ b/src/wallet/tx_builder.rs @@ -321,10 +321,7 @@ impl> TxBuilder { 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(_)) } }