simplify some pattern matches to appease 1.68 clippy (#13833)

This commit is contained in:
Mira Ressel
2023-04-11 12:57:14 +02:00
committed by GitHub
parent 271d65eae7
commit 17765733f0
10 changed files with 23 additions and 37 deletions
@@ -473,7 +473,7 @@ where
let (hashes, to_send): (Vec<_>, Vec<_>) = transactions
.iter()
.filter(|&(ref hash, _)| peer.known_transactions.insert(hash.clone()))
.filter(|(hash, _)| peer.known_transactions.insert(hash.clone()))
.cloned()
.unzip();