We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95c983 commit 74d64acCopy full SHA for 74d64ac
1 file changed
src/wallet.rs
@@ -249,13 +249,7 @@ where
249
) -> Result<Transaction, ()> {
250
let only_non_static = &descriptors
251
.iter()
252
- .filter(|desc| {
253
- if let SpendableOutputDescriptor::StaticOutput { .. } = desc {
254
- false
255
- } else {
256
- true
257
- }
258
- })
+ .filter(|desc| !matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
259
.copied()
260
.collect::<Vec<_>>();
261
self.inner.spend_spendable_outputs(
0 commit comments