Skip to content

Commit 3aefc8e

Browse files
committed
vis: make Data::load public
Grant h2 users access to frame::Data when using the 'unstable' feature set. Other frame types have similar visibility. Signed-off-by: Cfir Cohen <[email protected]>
1 parent 15c204d commit 3aefc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frame/data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<T> Data<T> {
117117
}
118118

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

123123
// The stream identifier must not be zero

0 commit comments

Comments
 (0)