From: Richard Ulrich Date: Tue, 20 Oct 2020 16:22:37 +0000 (+0200) Subject: complying with clippy from the github CI X-Git-Tag: v0.2.0~100 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/encode/static/gitweb.css?a=commitdiff_plain;h=759f6eac43a4a555c6f5383c10892557a114b255;p=bdk complying with clippy from the github CI --- 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(_)) } }