fix: Cargo clippy lints after rust 1.78

This commit is contained in:
Daniela Brozzoni
2024-05-02 14:53:37 +02:00
parent 08fac47c29
commit a5fb7fdf50
5 changed files with 13 additions and 7 deletions

View File

@@ -229,7 +229,7 @@ impl<I: Clone + Ord> SpkTxOutIndex<I> {
/// Here, "unused" means that after the script pubkey was stored in the index, the index has
/// never scanned a transaction output with it.
pub fn is_used(&self, index: &I) -> bool {
self.unused.get(index).is_none()
!self.unused.contains(index)
}
/// Marks the script pubkey at `index` as used even though it hasn't seen an output spending to it.