diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-05-01 17:17:05 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-05-01 23:56:23 +0000 |
| commit | e77b14e2acc1efbd649990873a8db678cf2086fa (patch) | |
| tree | abb0b2b95543579d0946a8c24edcbc1b37d18389 /library/std/src/sys/unix/kernel_copy.rs | |
| parent | b7d8c88b64843d05761576aa093a34a8bc176817 (diff) | |
| download | rust-e77b14e2acc1efbd649990873a8db678cf2086fa.tar.gz rust-e77b14e2acc1efbd649990873a8db678cf2086fa.zip | |
Relax implicit `R: Sized` bound on `BufReader<R>`
Diffstat (limited to 'library/std/src/sys/unix/kernel_copy.rs')
| -rw-r--r-- | library/std/src/sys/unix/kernel_copy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/kernel_copy.rs b/library/std/src/sys/unix/kernel_copy.rs index 16c8e0c0ebf..81b081e0070 100644 --- a/library/std/src/sys/unix/kernel_copy.rs +++ b/library/std/src/sys/unix/kernel_copy.rs @@ -466,7 +466,7 @@ impl<T: CopyRead> CopyRead for Take<T> { } } -impl<T: CopyRead> CopyRead for BufReader<T> { +impl<T: ?Sized + CopyRead> CopyRead for BufReader<T> { fn drain_to<W: Write>(&mut self, writer: &mut W, outer_limit: u64) -> Result<u64> { let buf = self.buffer(); let buf = &buf[0..min(buf.len(), outer_limit.try_into().unwrap_or(usize::MAX))]; |
