mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-08-28 04:10:09 -04:00
2e9afe48fb
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.