mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-07 13:12:01 +00:00
`io::Take`: avoid new `BorrowedBuf` creation in some case If `self.limit == buf.capacity()`, doing the whole `BorrowedBuf` dance is not necessary.