mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Fix Rust beta compiler errors 1.78.0-beta.1 (#5439)
* remove redundant imports * fix test * contains key * fmt * Merge branch 'unstable' into fix-beta-compiler
This commit is contained in:
@@ -132,7 +132,7 @@ impl<T: EthSpec> PackingEfficiencyHandler<T> {
|
||||
}
|
||||
|
||||
// Remove duplicate attestations as these yield no reward.
|
||||
attestations_in_block.retain(|x, _| self.included_attestations.get(x).is_none());
|
||||
attestations_in_block.retain(|x, _| !self.included_attestations.contains_key(x));
|
||||
self.included_attestations
|
||||
.extend(attestations_in_block.clone());
|
||||
|
||||
@@ -179,8 +179,9 @@ impl<T: EthSpec> PackingEfficiencyHandler<T> {
|
||||
.collect::<Vec<_>>()
|
||||
};
|
||||
|
||||
self.committee_store.previous_epoch_committees =
|
||||
self.committee_store.current_epoch_committees.clone();
|
||||
self.committee_store
|
||||
.previous_epoch_committees
|
||||
.clone_from(&self.committee_store.current_epoch_committees);
|
||||
|
||||
self.committee_store.current_epoch_committees = new_committees;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user