refactor(client): remove Unpin requirement on Body::Data

This commit is contained in:
Sean McArthur
2019-12-11 13:36:49 -08:00
parent 57ef271500
commit 52cc3f7367
3 changed files with 2 additions and 7 deletions

View File

@@ -31,7 +31,6 @@ pub(crate) async fn handshake<T, B>(
where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
B: Payload,
B::Data: Unpin,
{
let (h2_tx, conn) = builder
.handshake::<_, SendBuf<B::Data>>(io)
@@ -93,7 +92,6 @@ where
impl<B> Future for ClientTask<B>
where
B: Payload + Unpin + 'static,
B::Data: Unpin,
{
type Output = crate::Result<Dispatched>;