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 authored and seanmonstar committed Oct 28, 2022
1 parent 73dd474 commit 78e2c58
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 78e2c58

Please sign in to comment.