Skip to content

Commit 05ea4ce

Browse files
committed
Fix clippy::needless_borrow warning
1 parent ce924a3 commit 05ea4ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ where
995995
buf: &mut [u8],
996996
) -> Poll<io::Result<usize>> {
997997
loop {
998-
match (&*self).get_ref().read(buf) {
998+
match (*self).get_ref().read(buf) {
999999
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
10001000
res => return Poll::Ready(res),
10011001
}
@@ -1009,7 +1009,7 @@ where
10091009
bufs: &mut [IoSliceMut<'_>],
10101010
) -> Poll<io::Result<usize>> {
10111011
loop {
1012-
match (&*self).get_ref().read_vectored(bufs) {
1012+
match (*self).get_ref().read_vectored(bufs) {
10131013
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
10141014
res => return Poll::Ready(res),
10151015
}
@@ -1072,7 +1072,7 @@ where
10721072
buf: &[u8],
10731073
) -> Poll<io::Result<usize>> {
10741074
loop {
1075-
match (&*self).get_ref().write(buf) {
1075+
match (*self).get_ref().write(buf) {
10761076
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
10771077
res => return Poll::Ready(res),
10781078
}
@@ -1086,7 +1086,7 @@ where
10861086
bufs: &[IoSlice<'_>],
10871087
) -> Poll<io::Result<usize>> {
10881088
loop {
1089-
match (&*self).get_ref().write_vectored(bufs) {
1089+
match (*self).get_ref().write_vectored(bufs) {
10901090
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
10911091
res => return Poll::Ready(res),
10921092
}
@@ -1096,7 +1096,7 @@ where
10961096

10971097
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
10981098
loop {
1099-
match (&*self).get_ref().flush() {
1099+
match (*self).get_ref().flush() {
11001100
Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
11011101
res => return Poll::Ready(res),
11021102
}

0 commit comments

Comments
 (0)