Skip to content

Commit

Permalink
vis: make Data::load public
Browse files Browse the repository at this point in the history
Grant h2 users access to frame::Data when using the
'unstable' feature set. Other frame types have similar
visibility.

Signed-off-by: Cfir Cohen <cfir@wiz.io>
  • Loading branch information
cfircohen committed Dec 10, 2024
1 parent 15c204d commit 3aefc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frame/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<T> Data<T> {
}

impl Data<Bytes> {
pub(crate) fn load(head: Head, mut payload: Bytes) -> Result<Self, Error> {
pub fn load(head: Head, mut payload: Bytes) -> Result<Self, Error> {
let flags = DataFlags::load(head.flag());

// The stream identifier must not be zero
Expand Down

0 comments on commit 3aefc8e

Please sign in to comment.