Skip to content

Commit c0ab805

Browse files
committed
remove collect
1 parent 89752e2 commit c0ab805

File tree

1 file changed

+4
-6
lines changed
  • beacon_node/operation_pool/src

1 file changed

+4
-6
lines changed

beacon_node/operation_pool/src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl<T: EthSpec> OperationPool<T> {
365365
vec![]
366366
};
367367

368-
let prev_epoch_cliqued_atts: Vec<AttMaxCover<T>> = prev_epoch_cliqued_atts
368+
let prev_epoch_cliqued_atts = prev_epoch_cliqued_atts
369369
.iter()
370370
.map(|(data, indexed)| AttestationRef {
371371
checkpoint: &prev_epoch_key,
@@ -374,8 +374,7 @@ impl<T: EthSpec> OperationPool<T> {
374374
})
375375
.filter_map(|att| {
376376
AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec)
377-
})
378-
.collect();
377+
});
379378

380379
let curr_epoch_cliqued_atts = self.get_clique_aggregate_attestations_for_epoch(
381380
&curr_epoch_key,
@@ -386,7 +385,7 @@ impl<T: EthSpec> OperationPool<T> {
386385
spec,
387386
);
388387

389-
let curr_epoch_cliqued_atts: Vec<AttMaxCover<T>> = curr_epoch_cliqued_atts
388+
let curr_epoch_cliqued_atts = curr_epoch_cliqued_atts
390389
.iter()
391390
.map(|(data, indexed)| AttestationRef {
392391
checkpoint: &curr_epoch_key,
@@ -395,8 +394,7 @@ impl<T: EthSpec> OperationPool<T> {
395394
})
396395
.filter_map(|att| {
397396
AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec)
398-
})
399-
.collect();
397+
});
400398

401399
let prev_epoch_limit = if let BeaconState::Base(base_state) = state {
402400
std::cmp::min(

0 commit comments

Comments
 (0)