diff --git a/src/io.rs b/src/io.rs index d74628f..b1a2116 100644 --- a/src/io.rs +++ b/src/io.rs @@ -62,8 +62,8 @@ const DEFAULT_BUF_SIZE: usize = 8 * 1024; /// ``` pub async fn copy(reader: R, writer: W) -> Result where - R: AsyncRead + Unpin, - W: AsyncWrite + Unpin, + R: AsyncRead, + W: AsyncWrite, { pin_project! { struct CopyFuture { @@ -78,7 +78,7 @@ where impl Future for CopyFuture where R: AsyncBufRead, - W: AsyncWrite + Unpin, + W: AsyncWrite, { type Output = Result;