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

This commit is contained in:
Mira Ressel authored and GitHub committed 2023-04-11 10:57:14 +00:00
1 parent 271d65eae7
commit 17765733f0
10 files changed
+23 -37

No files matched your search

@@ -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();