Avoid clippy::significant_drop_in_scrutinee

This commit is contained in:
Michael Vines 2022-05-22 19:28:46 -07:00
parent 9d9773bd2a
commit 3608801a54
1 changed files with 2 additions and 1 deletions

View File

@ -860,7 +860,8 @@ impl ClusterInfo {
(0..crds_value::MAX_EPOCH_SLOTS)
.filter_map(|ix| {
let label = CrdsValueLabel::EpochSlots(ix, self_pubkey);
let epoch_slots = gossip_crds.get::<&CrdsValue>(&label)?.epoch_slots()?;
let crds_value = gossip_crds.get::<&CrdsValue>(&label)?;
let epoch_slots = crds_value.epoch_slots()?;
let first_slot = epoch_slots.first_slot()?;
Some((epoch_slots.wallclock, first_slot, ix))
})