Use .any() instead of .find().is_some(), clippy warning

https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
This commit is contained in:
Steve Myers 2021-04-08 12:19:40 -07:00
parent 2380634496
commit 5f873ae500
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051

View 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"
);