apply clippy 1.68 suggestions

* Simplify &(ref foo, _) tuple pattern matches
* Drop unneccessary .clone() calls
* Replace .position(cond).is_some() by .any(cond)
* Drop unneccessary lifetime specs
This commit is contained in:
Mira Ressel
2023-04-11 14:37:30 +02:00
parent 64660ee8d2
commit 0e9b0a6421
7 changed files with 17 additions and 21 deletions
@@ -491,7 +491,7 @@ impl Wakeups {
.collect();
let mut pruned_wakeups = BTreeMap::new();
self.reverse_wakeups.retain(|&(ref h, ref c_h), tick| {
self.reverse_wakeups.retain(|(h, c_h), tick| {
let live = !pruned_blocks.contains(h);
if !live {
pruned_wakeups.entry(*tick).or_insert_with(HashSet::new).insert((*h, *c_h));