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
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage