We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1919ca1 commit bf9bcc2Copy full SHA for bf9bcc2
1 file changed
src/wallet.rs
@@ -241,13 +241,7 @@ where
241
) -> Result<Transaction, ()> {
242
let only_non_static = &descriptors
243
.iter()
244
- .filter(|desc| {
245
- if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
246
- false
247
- } else {
248
- true
249
- }
250
- })
+ .filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
251
.copied()
252
.collect::<Vec<_>>();
253
self.inner.spend_spendable_outputs(
0 commit comments