diff --git a/src/proto/h1/dispatch.rs b/src/proto/h1/dispatch.rs index be0a88c1f9..a9236fe851 100644 --- a/src/proto/h1/dispatch.rs +++ b/src/proto/h1/dispatch.rs @@ -108,8 +108,6 @@ where /// This is useful for old-style HTTP upgrades, but ignores /// newer-style upgrade API. pub(crate) fn poll_without_shutdown(&mut self, cx: &mut Context<'_>) -> Poll> - where - Self: Unpin, { Pin::new(self).poll_catch(cx, false).map_ok(|ds| { if let Dispatched::Upgrade(pending) = ds { diff --git a/src/server/conn/http1.rs b/src/server/conn/http1.rs index cf22316296..cfe374466d 100644 --- a/src/server/conn/http1.rs +++ b/src/server/conn/http1.rs @@ -166,7 +166,6 @@ where where S: Unpin, S::Future: Unpin, - B: Unpin, { self.conn.poll_without_shutdown(cx) } @@ -178,10 +177,6 @@ where /// /// This errors if the underlying connection protocol is not HTTP/1. pub fn without_shutdown(self) -> impl Future>> - where - S: Unpin, - S::Future: Unpin, - B: Unpin, { let mut zelf = Some(self); futures_util::future::poll_fn(move |cx| {