complying with clippy from the github CI

This commit is contained in:
Richard Ulrich 2020-10-20 18:22:37 +02:00
parent 27890cfcff
commit 759f6eac43
No known key found for this signature in database
GPG Key ID: 02EC6014E8401492

View File

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