Skip to content

Commit bf9bcc2

Browse files
committed
f WalletKeysManager clippy lints
1 parent 1919ca1 commit bf9bcc2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/wallet.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,7 @@ where
241241
) -> Result<Transaction, ()> {
242242
let only_non_static = &descriptors
243243
.iter()
244-
.filter(|desc| {
245-
if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
246-
false
247-
} else {
248-
true
249-
}
250-
})
244+
.filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
251245
.copied()
252246
.collect::<Vec<_>>();
253247
self.inner.spend_spendable_outputs(

0 commit comments

Comments
 (0)