We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc78491 commit b3774bdCopy full SHA for b3774bd
src/body/body.rs
@@ -309,9 +309,9 @@ impl Payload for Body {
309
fn poll_trailers(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Result<HeaderMap, Self::Error>>> {
310
match self.kind {
311
Kind::H2 { recv: ref mut h2, .. } => match ready!(h2.poll_trailers(cx)) {
312
- Some(Ok(t)) => Poll::Ready(Some(Ok(t))),
313
- Some(Err(e)) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
314
- 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),
315
},
316
_ => Poll::Ready(None),
317
}
0 commit comments