Skip to content

Commit

Permalink
feat: implement Body::size_hint for MapFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
tujiayu.tjy committed Dec 20, 2024
1 parent 0988380 commit 9bb4acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http-body-util/src/combinators/map_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ where
fn is_end_stream(&self) -> bool {
self.inner.is_end_stream()
}

fn size_hint(&self) -> http_body::SizeHint {
self.inner.size_hint()
}
}

impl<B, F> fmt::Debug for MapFrame<B, F>
Expand Down

0 comments on commit 9bb4acc

Please sign in to comment.