From: Steve Myers Date: Thu, 8 Apr 2021 19:19:40 +0000 (-0700) Subject: Use .any() instead of .find().is_some(), clippy warning X-Git-Tag: v0.7.0~18^2~4 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.VersionMessage.html?a=commitdiff_plain;h=5f873ae500b4268bb263c0344d5acc4b19cac65b;p=bdk Use .any() instead of .find().is_some(), clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some --- 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" );