Remove unnecessary drop()

This commit is contained in:
Paul Hauner 2019-09-23 22:21:34 +10:00
parent b316086be0
commit e7a580393c
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -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(()) => (),