1
Fork 0

core: optimise Debug impl for ascii::Char

Rather than writing character at a time, optimise Debug implementation
for core::ascii::Char such that it writes the entire representation as
with a single write_str call.

With that, add tests for Display and Debug implementations.
This commit is contained in:
Michal Nazarewicz 2024-01-24 16:48:54 +01:00
parent 19ebdcedf1
commit 7d1de7f994
3 changed files with 42 additions and 19 deletions

View file

@ -122,6 +122,7 @@ mod alloc;
mod any;
mod array;
mod ascii;
mod ascii_char;
mod asserting;
mod async_iter;
mod atomic;