From 54ef26b4552743f693c3c4ec4e47cb1dfbdc6e2f Mon Sep 17 00:00:00 2001 From: realbigsean Date: Sun, 28 Nov 2021 21:12:54 -0500 Subject: [PATCH] cargo fmt --- .../beacon_chain/src/schema_change/migrate_schema_6.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/beacon_chain/src/schema_change/migrate_schema_6.rs b/beacon_node/beacon_chain/src/schema_change/migrate_schema_6.rs index 731aae99c1d..437060b8db9 100644 --- a/beacon_node/beacon_chain/src/schema_change/migrate_schema_6.rs +++ b/beacon_node/beacon_chain/src/schema_change/migrate_schema_6.rs @@ -32,11 +32,11 @@ pub(crate) fn update_with_reinitialized_fork_choice( let anchor_block = db .get_block(&anchor_block_root) .map_err(|e| format!("{:?}", e))? - .ok_or_else(||"Missing anchor beacon block".to_string())?; + .ok_or_else(|| "Missing anchor beacon block".to_string())?; let anchor_state = db .get_state(&anchor_block.state_root(), Some(anchor_block.slot())) .map_err(|e| format!("{:?}", e))? - .ok_or_else(||"Missing anchor beacon state".to_string())?; + .ok_or_else(|| "Missing anchor beacon state".to_string())?; let snapshot = BeaconSnapshot { beacon_block: anchor_block, beacon_block_root: anchor_block_root,