Skip to content

Commit

Permalink
fix is_end_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Nov 20, 2023
1 parent b7dc13a commit 4e6c15f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions http-body-util/src/combinators/with_trailers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ where
}
}

#[inline]
fn is_end_stream(&self) -> bool {
match &self.state {
State::PollBody { body, .. } => body.is_end_stream(),
State::PollTrailers { .. } | State::Done => true,
}
}

#[inline]
fn size_hint(&self) -> http_body::SizeHint {
match &self.state {
Expand Down

0 comments on commit 4e6c15f

Please sign in to comment.