Skip to content

Commit

Permalink
chore(dependencies): update h2's trailer signature
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 21, 2019
1 parent fc78491 commit b3774bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/body/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ impl Payload for Body {
fn poll_trailers(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Result<HeaderMap, Self::Error>>> {
match self.kind {
Kind::H2 { recv: ref mut h2, .. } => match ready!(h2.poll_trailers(cx)) {
Some(Ok(t)) => Poll::Ready(Some(Ok(t))),
Some(Err(e)) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
None => Poll::Ready(None),
Ok(Some(t)) => Poll::Ready(Some(Ok(t))),
Err(e) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
Ok(None) => Poll::Ready(None),
},
_ => Poll::Ready(None),
}
Expand Down

0 comments on commit b3774bd

Please sign in to comment.