mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 08:05:41 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user