chore(dependencies): update h2's trailer signature
This commit is contained in:
@@ -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>>> {
|
fn poll_trailers(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Result<HeaderMap, Self::Error>>> {
|
||||||
match self.kind {
|
match self.kind {
|
||||||
Kind::H2 { recv: ref mut h2, .. } => match ready!(h2.poll_trailers(cx)) {
|
Kind::H2 { recv: ref mut h2, .. } => match ready!(h2.poll_trailers(cx)) {
|
||||||
Some(Ok(t)) => Poll::Ready(Some(Ok(t))),
|
Ok(Some(t)) => Poll::Ready(Some(Ok(t))),
|
||||||
Some(Err(e)) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
|
Err(e) => Poll::Ready(Some(Err(crate::Error::new_h2(e)))),
|
||||||
None => Poll::Ready(None),
|
Ok(None) => Poll::Ready(None),
|
||||||
},
|
},
|
||||||
_ => Poll::Ready(None),
|
_ => Poll::Ready(None),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user