From b3774bd6d3c2f63122e232b3cde3146d30b305e9 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 20 Aug 2019 17:34:36 -0700 Subject: [PATCH] chore(dependencies): update h2's trailer signature --- src/body/body.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/body/body.rs b/src/body/body.rs index 33f4189c3f..020de397f0 100644 --- a/src/body/body.rs +++ b/src/body/body.rs @@ -309,9 +309,9 @@ impl Payload for Body { fn poll_trailers(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll>> { 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), }