diff options
author | Taiki Endo <te316e89@gmail.com> | 2020-06-12 14:28:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 14:28:23 +0900 |
commit | 1769f65d37b81aa2fd9d68687c7ed9d82773ea80 (patch) | |
tree | 6c781716399614ee35e62e394f10744c850fa7d7 /tokio/src/io/util/async_read_ext.rs | |
parent | 1636910f0a6bdb2084362be6b4daea70bcdceebc (diff) |
io: fix unsound pin projection in read_buf and write_buf (#2612)
Diffstat (limited to 'tokio/src/io/util/async_read_ext.rs')
-rw-r--r-- | tokio/src/io/util/async_read_ext.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/io/util/async_read_ext.rs b/tokio/src/io/util/async_read_ext.rs index d4402db6..fcd2cce4 100644 --- a/tokio/src/io/util/async_read_ext.rs +++ b/tokio/src/io/util/async_read_ext.rs @@ -221,7 +221,7 @@ cfg_io_util! { /// ``` fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B> where - Self: Sized, + Self: Sized + Unpin, B: BufMut, { read_buf(self, buf) |