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:
parent
2380634496
commit
5f873ae500
@ -2431,8 +2431,7 @@ mod test {
|
|||||||
.unsigned_tx
|
.unsigned_tx
|
||||||
.input
|
.input
|
||||||
.iter()
|
.iter()
|
||||||
.find(|input| input.previous_output == utxo.outpoint)
|
.any(|input| input.previous_output == utxo.outpoint),
|
||||||
.is_some(),
|
|
||||||
"foreign_utxo should be in there"
|
"foreign_utxo should be in there"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user