rust: Use the DisplayBytes trait in config printing
This is similar to `std::fmt::Display`, but for arbitrary bytes instead of Unicode. Writing to an abstract output stream helps avoid allocating intermediate `Vec<u8>` buffers. Differential Revision: https://phab.mercurial-scm.org/D9966
parent
3caa3698335e
No related branches found
No related tags found
Showing
- rust/Cargo.lock 7 additions, 7 deletionsrust/Cargo.lock
- rust/hg-core/Cargo.toml 1 addition, 1 deletionrust/hg-core/Cargo.toml
- rust/hg-core/src/config/config.rs 16 additions, 6 deletionsrust/hg-core/src/config/config.rs
- rust/hg-core/src/config/layer.rs 21 additions, 19 deletionsrust/hg-core/src/config/layer.rs
- rust/rhg/Cargo.toml 1 addition, 1 deletionrust/rhg/Cargo.toml
- rust/rhg/src/error.rs 1 addition, 1 deletionrust/rhg/src/error.rs
Please register or sign in to comment