diff --git a/crates/net/discv5/src/network_stack_id.rs b/crates/net/discv5/src/network_stack_id.rs index abb534158baf..6cb7507bb8bf 100644 --- a/crates/net/discv5/src/network_stack_id.rs +++ b/crates/net/discv5/src/network_stack_id.rs @@ -20,8 +20,9 @@ impl NetworkStackId { /// ENR fork ID kv-pair key, for an Optimism CL node. pub const OPSTACK: &'static [u8] = b"opstack"; + #[allow(clippy::missing_const_for_fn)] /// Returns the [`NetworkStackId`] that matches the given [`ChainSpec`]. - pub const fn id(chain: &ChainSpec) -> Option<&'static [u8]> { + pub fn id(chain: &ChainSpec) -> Option<&'static [u8]> { if chain.is_optimism() { return Some(Self::OPEL) } else if chain.is_eth() {