We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd2189 commit 3c46705Copy full SHA for 3c46705
tokio/src/io/util/take.rs
@@ -84,11 +84,10 @@ impl<R: AsyncRead> AsyncRead for Take<R> {
84
return Poll::Ready(Ok(()));
85
}
86
87
- let buf_ptr = buf.filled().as_ptr();
88
-
89
let me = self.project();
90
let mut b = buf.take(*me.limit_ as usize);
91
+ let buf_ptr = b.filled().as_ptr();
92
ready!(me.inner.poll_read(cx, &mut b))?;
93
assert_eq!(b.filled().as_ptr(), buf_ptr);
94
0 commit comments