diff --git a/src/client/conn.rs b/src/client/conn.rs index a43f3bd7..29d02cbf 100644 --- a/src/client/conn.rs +++ b/src/client/conn.rs @@ -385,7 +385,6 @@ impl Future for Connection where T: AsyncRead + AsyncWrite + Unpin + Send + 'static, B: Payload + Unpin + 'static, - B::Data: Unpin, { type Output = crate::Result<()>; @@ -521,7 +520,6 @@ impl Builder { where T: AsyncRead + AsyncWrite + Unpin + Send + 'static, B: Payload + 'static, - B::Data: Unpin, { let opts = self.clone(); @@ -594,7 +592,6 @@ impl Future for ProtoClient where T: AsyncRead + AsyncWrite + Send + Unpin + 'static, B: Payload + Unpin + 'static, - B::Data: Unpin, { type Output = crate::Result; diff --git a/src/client/mod.rs b/src/client/mod.rs index 16daece9..a094c913 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -153,7 +153,7 @@ where C::Transport: Unpin + Send + 'static, C::Future: Unpin + Send + 'static, B: Payload + Unpin + Send + 'static, - B::Data: Send + Unpin, + B::Data: Send, { /// Send a `GET` request to the supplied `Uri`. /// @@ -551,7 +551,7 @@ where C::Transport: Unpin + Send + 'static, C::Future: Unpin + Send + 'static, B: Payload + Unpin + Send + 'static, - B::Data: Send + Unpin, + B::Data: Send, { type Response = Response; type Error = crate::Error; diff --git a/src/proto/h2/client.rs b/src/proto/h2/client.rs index d0d251fc..f05abca2 100644 --- a/src/proto/h2/client.rs +++ b/src/proto/h2/client.rs @@ -31,7 +31,6 @@ pub(crate) async fn handshake( where T: AsyncRead + AsyncWrite + Send + Unpin + 'static, B: Payload, - B::Data: Unpin, { let (h2_tx, conn) = builder .handshake::<_, SendBuf>(io) @@ -93,7 +92,6 @@ where impl Future for ClientTask where B: Payload + Unpin + 'static, - B::Data: Unpin, { type Output = crate::Result;