diff --git a/src/ext.rs b/src/ext.rs index 6c54821e9d..224206dd66 100644 --- a/src/ext.rs +++ b/src/ext.rs @@ -40,6 +40,7 @@ impl Protocol { self.inner.as_str() } + #[cfg(feature = "server")] pub(crate) fn from_inner(inner: h2::ext::Protocol) -> Self { Self { inner } }