Skip to content

Commit b3774bd

Browse files
committed
chore(dependencies): update h2's trailer signature
1 parent fc78491 commit b3774bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/body/body.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ impl Payload for Body {
309309
fn poll_trailers(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Result<HeaderMap, Self::Error>>> {
310310
match self.kind {
311311
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),
312+
Ok(Some(t)) => Poll::Ready(Some(Ok(t))),
313+
Err(e) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
314+
Ok(None) => Poll::Ready(None),
315315
},
316316
_ => Poll::Ready(None),
317317
}

0 commit comments

Comments
 (0)