From e77b14e2acc1efbd649990873a8db678cf2086fa Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 1 May 2023 17:17:05 +0000 Subject: Relax implicit `R: Sized` bound on `BufReader` --- library/std/src/sys/unix/kernel_copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/std/src/sys') 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 CopyRead for Take { } } -impl CopyRead for BufReader { +impl CopyRead for BufReader { fn drain_to(&mut self, writer: &mut W, outer_limit: u64) -> Result { let buf = self.buffer(); let buf = &buf[0..min(buf.len(), outer_limit.try_into().unwrap_or(usize::MAX))]; -- cgit 1.4.1-3-g733a5