This is an archive of the discontinued Mercurial Phabricator instance.

rust: Use the DisplayBytes trait in config printing
ClosedPublic

Authored by SimonSapin on Feb 8 2021, 2:00 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.