Page MenuHomePhabricator

rust: Use the DisplayBytes trait in config printing
ClosedPublic

Authored by SimonSapin on Mon, Feb 8, 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.