We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d45f12d commit 876403eCopy full SHA for 876403e
1 file changed
src/wallet.rs
@@ -258,13 +258,7 @@ where
258
) -> Result<Transaction, ()> {
259
let only_non_static = &descriptors
260
.iter()
261
- .filter(|desc| {
262
- if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
263
- false
264
- } else {
265
- true
266
- }
267
- })
+ .filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
268
.copied()
269
.collect::<Vec<_>>();
270
self.inner.spend_spendable_outputs(
0 commit comments