Prune futures-* dependencies

This commit is contained in:
Sean McArthur
2019-08-30 13:50:04 -07:00
parent 678c90eb0a
commit 2d90efee17
13 changed files with 37 additions and 64 deletions

View File

@@ -121,7 +121,6 @@ use crate::proto::{self, Config, Prioritized};
use crate::{PingPong, RecvStream, ReleaseCapacity, SendStream};
use bytes::{Buf, Bytes, IntoBuf};
use futures::ready;
use http::{HeaderMap, Request, Response};
use std::future::Future;
use std::pin::Pin;
@@ -363,7 +362,7 @@ where
pub async fn accept(
&mut self,
) -> Option<Result<(Request<RecvStream>, SendResponse<B>), crate::Error>> {
futures::future::poll_fn(move |cx| self.poll_accept(cx)).await
futures_util::future::poll_fn(move |cx| self.poll_accept(cx)).await
}
#[doc(hidden)]
@@ -479,7 +478,7 @@ where
}
#[cfg(feature = "stream")]
impl<T, B> futures::Stream for Connection<T, B>
impl<T, B> futures_core::Stream for Connection<T, B>
where
T: AsyncRead + AsyncWrite + Unpin,
B: IntoBuf + Unpin,