diff --git a/src/lib.rs b/src/lib.rs index 5b2de42..63c47f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1086,7 +1086,7 @@ impl AsyncRead for Async { buf: &mut [u8], ) -> Poll> { loop { - match (&mut *self).get_mut().read(buf) { + match (*self).get_mut().read(buf) { Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} res => return Poll::Ready(res), } @@ -1100,7 +1100,7 @@ impl AsyncRead for Async { bufs: &mut [IoSliceMut<'_>], ) -> Poll> { loop { - match (&mut *self).get_mut().read_vectored(bufs) { + match (*self).get_mut().read_vectored(bufs) { Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} res => return Poll::Ready(res), } @@ -1149,7 +1149,7 @@ impl AsyncWrite for Async { buf: &[u8], ) -> Poll> { loop { - match (&mut *self).get_mut().write(buf) { + match (*self).get_mut().write(buf) { Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} res => return Poll::Ready(res), } @@ -1163,7 +1163,7 @@ impl AsyncWrite for Async { bufs: &[IoSlice<'_>], ) -> Poll> { loop { - match (&mut *self).get_mut().write_vectored(bufs) { + match (*self).get_mut().write_vectored(bufs) { Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} res => return Poll::Ready(res), } @@ -1173,7 +1173,7 @@ impl AsyncWrite for Async { fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { loop { - match (&mut *self).get_mut().flush() { + match (*self).get_mut().flush() { Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} res => return Poll::Ready(res), }