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 abda966 commit 48ea71bCopy full SHA for 48ea71b
src/io/buf_read/mod.rs
@@ -43,11 +43,11 @@ cfg_if! {
43
pub trait BufRead {
44
/// Tells this buffer that `amt` bytes have been consumed from the buffer, so they should no
45
/// longer be returned in calls to `read`.
46
- fn consume(self: Pin<&mut Self>, amt: usize)
+ fn consume(&mut self, amt: usize)
47
where
48
- Self: AsyncBufRead,
+ Self: AsyncBufRead + Unpin,
49
{
50
- AsyncBufRead::consume(self, amt)
+ AsyncBufRead::consume(Pin::new(self), amt)
51
}
52
53
/// Reads all bytes into `buf` until the delimiter `byte` or EOF is reached.
0 commit comments