Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Nov 29, 2021
1 parent 91055e6 commit 54ef26b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ pub(crate) fn update_with_reinitialized_fork_choice<T: BeaconChainTypes>(
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,
Expand Down

0 comments on commit 54ef26b

Please sign in to comment.