mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-27 22:37:25 +00:00
Remove unnecessary drop()
This commit is contained in:
parent
b316086be0
commit
e7a580393c
@ -373,8 +373,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
Ok(head_state)
|
||||
} else if slot > head_state.slot {
|
||||
let head_state_slot = head_state.slot;
|
||||
let mut state = head_state.clone();
|
||||
drop(head_state);
|
||||
let mut state = head_state;
|
||||
while state.slot < slot {
|
||||
match per_slot_processing(&mut state, &self.spec) {
|
||||
Ok(()) => (),
|
||||
|
Loading…
Reference in New Issue
Block a user