diff --git a/beacon_node/operation_pool/src/lib.rs b/beacon_node/operation_pool/src/lib.rs index fe585721fbf..15f5d20b82f 100644 --- a/beacon_node/operation_pool/src/lib.rs +++ b/beacon_node/operation_pool/src/lib.rs @@ -365,7 +365,7 @@ impl OperationPool { vec![] }; - let prev_epoch_cliqued_atts: Vec> = prev_epoch_cliqued_atts + let prev_epoch_cliqued_atts = prev_epoch_cliqued_atts .iter() .map(|(data, indexed)| AttestationRef { checkpoint: &prev_epoch_key, @@ -374,8 +374,7 @@ impl OperationPool { }) .filter_map(|att| { AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec) - }) - .collect(); + }); let curr_epoch_cliqued_atts = self.get_clique_aggregate_attestations_for_epoch( &curr_epoch_key, @@ -386,7 +385,7 @@ impl OperationPool { spec, ); - let curr_epoch_cliqued_atts: Vec> = curr_epoch_cliqued_atts + let curr_epoch_cliqued_atts = curr_epoch_cliqued_atts .iter() .map(|(data, indexed)| AttestationRef { checkpoint: &curr_epoch_key, @@ -395,8 +394,7 @@ impl OperationPool { }) .filter_map(|att| { AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec) - }) - .collect(); + }); let prev_epoch_limit = if let BeaconState::Base(base_state) = state { std::cmp::min(