summary refs log tree commit diff
path: root/library/std/src/io/copy
AgeCommit message (Collapse)AuthorLines
2023-06-17Extend io::copy buffer reuse to BufReader tooThe 8472-0/+108
previously it was only able to use BufWriter. This was due to a limitation in the BufReader generics that prevented specialization. This change works around the issue by using `where Self: Read` instead of `where I: Read`. This limits our options, e.g. we can't access BufRead methods, but it happens to work out if we rely on some implementation details.