From e7a580393c1054086dc7fd2ab13307e27ce13eb8 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 23 Sep 2019 22:21:34 +1000 Subject: [PATCH] Remove unnecessary drop() --- beacon_node/beacon_chain/src/beacon_chain.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index d9403cec9..f0d158964 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -373,8 +373,7 @@ impl BeaconChain { 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(()) => (),