aboutsummaryrefslogtreecommitdiff
path: root/src/io/util/read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/util/read.rs')
-rw-r--r--src/io/util/read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/util/read.rs b/src/io/util/read.rs
index edc9d5a..a1f9c8a 100644
--- a/src/io/util/read.rs
+++ b/src/io/util/read.rs
@@ -48,7 +48,7 @@ where
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<usize>> {
let me = self.project();
- let mut buf = ReadBuf::new(*me.buf);
+ let mut buf = ReadBuf::new(me.buf);
ready!(Pin::new(me.reader).poll_read(cx, &mut buf))?;
Poll::Ready(Ok(buf.filled().len()))
}