mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-28 14:57:17 +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)
|
Ok(head_state)
|
||||||
} else if slot > head_state.slot {
|
} else if slot > head_state.slot {
|
||||||
let head_state_slot = head_state.slot;
|
let head_state_slot = head_state.slot;
|
||||||
let mut state = head_state.clone();
|
let mut state = head_state;
|
||||||
drop(head_state);
|
|
||||||
while state.slot < slot {
|
while state.slot < slot {
|
||||||
match per_slot_processing(&mut state, &self.spec) {
|
match per_slot_processing(&mut state, &self.spec) {
|
||||||
Ok(()) => (),
|
Ok(()) => (),
|
||||||
|
Loading…
Reference in New Issue
Block a user