]> Untitled Git - bdk/commitdiff
Use .any() instead of .find().is_some(), clippy warning
authorSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 19:19:40 +0000 (12:19 -0700)
committerSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 21:18:07 +0000 (14:18 -0700)
https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some

src/wallet/mod.rs

index 73169a023f8079a4fda505a411eeb12e1a324565..b0db0ec3225147ff3998f93d2dd99ea71a6f9ac1 100644 (file)
@@ -2431,8 +2431,7 @@ mod test {
                 .unsigned_tx
                 .input
                 .iter()
-                .find(|input| input.previous_output == utxo.outpoint)
-                .is_some(),
+                .any(|input| input.previous_output == utxo.outpoint),
             "foreign_utxo should be in there"
         );