Skip to content

Commit 74d64ac

Browse files
committed
f WalletKeysManager clippy lints
1 parent d95c983 commit 74d64ac

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
@@ -249,13 +249,7 @@ where
249249
) -> Result<Transaction, ()> {
250250
let only_non_static = &descriptors
251251
.iter()
252-
.filter(|desc| {
253-
if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
254-
false
255-
} else {
256-
true
257-
}
258-
})
252+
.filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
259253
.copied()
260254
.collect::<Vec<_>>();
261255
self.inner.spend_spendable_outputs(

0 commit comments

Comments
 (0)