Skip to content

Commit 876403e

Browse files
committed
f WalletKeysManager clippy lints
1 parent d45f12d commit 876403e

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
@@ -258,13 +258,7 @@ where
258258
) -> Result<Transaction, ()> {
259259
let only_non_static = &descriptors
260260
.iter()
261-
.filter(|desc| {
262-
if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
263-
false
264-
} else {
265-
true
266-
}
267-
})
261+
.filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
268262
.copied()
269263
.collect::<Vec<_>>();
270264
self.inner.spend_spendable_outputs(

0 commit comments

Comments
 (0)