refactor(client): remove Unpin requirement from request body

This commit is contained in:
Sean McArthur
2019-12-11 14:05:07 -08:00
parent 52cc3f7367
commit a07142da2d
3 changed files with 6 additions and 7 deletions

View File

@@ -332,7 +332,6 @@ impl<T, B> Connection<T, B>
where
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
B: Payload + Unpin + 'static,
B::Data: Unpin,
{
/// Return the inner IO object, and additional information.
///
@@ -384,7 +383,7 @@ where
impl<T, B> Future for Connection<T, B>
where
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
B: Payload + Unpin + 'static,
B: Payload + 'static,
{
type Output = crate::Result<()>;
@@ -591,7 +590,7 @@ impl fmt::Debug for ResponseFuture {
impl<T, B> Future for ProtoClient<T, B>
where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
B: Payload + Unpin + 'static,
B: Payload + 'static,
{
type Output = crate::Result<proto::Dispatched>;