From a575029f534e82c65961954866dc883f78d38d61 Mon Sep 17 00:00:00 2001 From: Oscar Pepper Date: Tue, 17 Sep 2024 14:42:57 +0100 Subject: [PATCH] fix clippy warnings --- zingolib/src/wallet/transaction_records_by_id.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zingolib/src/wallet/transaction_records_by_id.rs b/zingolib/src/wallet/transaction_records_by_id.rs index ddd7b48b77..5acc66311f 100644 --- a/zingolib/src/wallet/transaction_records_by_id.rs +++ b/zingolib/src/wallet/transaction_records_by_id.rs @@ -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); @@ -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);