Skip to content

Commit

Permalink
chore(http2): add a server feature-gate on some server-only method
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Oct 12, 2022
1 parent 0ff6213 commit f193ea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit f193ea0

Please sign in to comment.