Skip to content

Commit b96eb16

Browse files
noxseanmonstar
authored andcommitted
chore(http2): add a server feature-gate on some server-only method
1 parent 81e25fa commit b96eb16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ext.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl Protocol {
4040
self.inner.as_str()
4141
}
4242

43+
#[cfg(feature = "server")]
4344
pub(crate) fn from_inner(inner: h2::ext::Protocol) -> Self {
4445
Self { inner }
4546
}

0 commit comments

Comments
 (0)