Skip to content

Commit 4ca2719

Browse files
committed
Fix clippy warnings
1 parent 7e5a7bc commit 4ca2719

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ impl<T: Read> AsyncRead for Async<T> {
10861086
buf: &mut [u8],
10871087
) -> Poll<io::Result<usize>> {
10881088
loop {
1089-
match (&mut *self).get_mut().read(buf) {
1089+
match (*self).get_mut().read(buf) {
10901090
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
10911091
res => return Poll::Ready(res),
10921092
}
@@ -1100,7 +1100,7 @@ impl<T: Read> AsyncRead for Async<T> {
11001100
bufs: &mut [IoSliceMut<'_>],
11011101
) -> Poll<io::Result<usize>> {
11021102
loop {
1103-
match (&mut *self).get_mut().read_vectored(bufs) {
1103+
match (*self).get_mut().read_vectored(bufs) {
11041104
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
11051105
res => return Poll::Ready(res),
11061106
}
@@ -1149,7 +1149,7 @@ impl<T: Write> AsyncWrite for Async<T> {
11491149
buf: &[u8],
11501150
) -> Poll<io::Result<usize>> {
11511151
loop {
1152-
match (&mut *self).get_mut().write(buf) {
1152+
match (*self).get_mut().write(buf) {
11531153
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
11541154
res => return Poll::Ready(res),
11551155
}
@@ -1163,7 +1163,7 @@ impl<T: Write> AsyncWrite for Async<T> {
11631163
bufs: &[IoSlice<'_>],
11641164
) -> Poll<io::Result<usize>> {
11651165
loop {
1166-
match (&mut *self).get_mut().write_vectored(bufs) {
1166+
match (*self).get_mut().write_vectored(bufs) {
11671167
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
11681168
res => return Poll::Ready(res),
11691169
}
@@ -1173,7 +1173,7 @@ impl<T: Write> AsyncWrite for Async<T> {
11731173

11741174
fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
11751175
loop {
1176-
match (&mut *self).get_mut().flush() {
1176+
match (*self).get_mut().flush() {
11771177
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
11781178
res => return Poll::Ready(res),
11791179
}

0 commit comments

Comments
 (0)