Skip to content

Commit 77ce8ce

Browse files
committed
f WalletKeysManager clippy lints
1 parent 1bc8d1c commit 77ce8ce

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/wallet.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,7 @@ where
250250
) -> Result<Transaction, ()> {
251251
let only_non_static = &descriptors
252252
.iter()
253-
.filter(|desc| {
254-
if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
255-
false
256-
} else {
257-
true
258-
}
259-
})
253+
.filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
260254
.copied()
261255
.collect::<Vec<_>>();
262256
self.inner.spend_spendable_outputs(

0 commit comments

Comments
 (0)