Skip to content

Commit 9ece8a1

Browse files
committed
feat: implement Body::size_hint for MapFrame
1 parent 0988380 commit 9ece8a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

http-body-util/src/combinators/map_frame.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ where
7272
fn is_end_stream(&self) -> bool {
7373
self.inner.is_end_stream()
7474
}
75+
76+
fn size_hint(&self) -> http_body::SizeHint {
77+
self.inner.size_hint()
78+
}
7579
}
7680

7781
impl<B, F> fmt::Debug for MapFrame<B, F>

0 commit comments

Comments
 (0)