Use `write_char` to skip the formatting infrastructure

This commit is contained in:
Oliver Scherer 2019-04-24 14:10:31 +02:00
parent 90bb861b2e
commit ecee75d114
1 changed files with 1 additions and 1 deletions

View File

@ -1618,7 +1618,7 @@ define_print_and_forward_display! {
p!(write("b\""));
for &c in byte_str {
for e in std::ascii::escape_default(c) {
p!(write("{}", e as char));
cx.write_char(e as char)?;
}
}
p!(write("\""));