Skip to content

Commit

Permalink
Expose Extensions::from_http to user (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh authored Mar 3, 2024
1 parent 23d79f7 commit 0a19455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tonic/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ impl Extensions {
}

#[inline]
pub(crate) fn from_http(http: http::Extensions) -> Self {
/// Convert from `http::Extensions`
pub fn from_http(http: http::Extensions) -> Self {
Self { inner: http }
}

Expand Down

0 comments on commit 0a19455

Please sign in to comment.