Fix clippy lints, small typos

This commit is contained in:
Paul Hauner
2019-02-24 18:52:12 +13:00
parent c49f425fe8
commit ab10cbbdb5
3 changed files with 11 additions and 17 deletions

View File

@@ -495,12 +495,7 @@ where
// TODO: this is a first-in-best-dressed scenario that is not ideal; fork_choice should be
// run instead.
if self.head().beacon_block_root == parent_block_root {
self.update_canonical_head(
block.clone(),
block_root.clone(),
state.clone(),
state_root,
);
self.update_canonical_head(block.clone(), block_root, state.clone(), state_root);
// Update the local state variable.
*self.state.write() = state.clone();
}