diff --git a/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs b/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs index faf120beef..45454db616 100644 --- a/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs +++ b/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs @@ -116,9 +116,7 @@ impl AwaitingParent { spec: &ChainSpec, ) -> Result { if spec.fork_name_at_slot::(slot).gloas_enabled() { - Err(format!( - "AwaitingParent can not be created from a Gloas header" - )) + Err("AwaitingParent can not be created from a Gloas header".to_owned()) } else { Ok(Self { parent_root,