Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Sep 17, 2024
1 parent 451388f commit a575029
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zingolib/src/wallet/transaction_records_by_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ impl TransactionRecordsById {
tx.orchard_notes()
.iter()
.flat_map(|note| note.nullifier)
.find(|nf| nf == nullifier)
.is_some()
.any(|nf| nf == *nullifier)
})
.map(|tx| tx.txid);

Expand Down Expand Up @@ -252,8 +251,7 @@ impl TransactionRecordsById {
tx.sapling_notes()
.iter()
.flat_map(|note| note.nullifier)
.find(|nf| nf == nullifier)
.is_some()
.any(|nf| nf == *nullifier)
})
.map(|tx| tx.txid);

Expand Down

0 comments on commit a575029

Please sign in to comment.