From 5f873ae500b4268bb263c0344d5acc4b19cac65b Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Thu, 8 Apr 2021 12:19:40 -0700 Subject: [PATCH] Use .any() instead of .find().is_some(), clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some --- src/wallet/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index 73169a02..b0db0ec3 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -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" );