Drop useless format! to satisfy clippy

This commit is contained in:
dapplion
2026-05-19 16:56:21 -06:00
parent 9f4c14cd76
commit 701bbfd861

View File

@@ -116,9 +116,7 @@ impl AwaitingParent {
spec: &ChainSpec,
) -> Result<Self, String> {
if spec.fork_name_at_slot::<E>(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,