From ecee75d114a648885cd490f3620a3e58cee64bf8 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Wed, 24 Apr 2019 14:10:31 +0200 Subject: [PATCH] Use `write_char` to skip the formatting infrastructure --- src/librustc/ty/print/pretty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index 6a5494e9d9a..0f7bc95902d 100644 --- a/src/librustc/ty/print/pretty.rs +++ b/src/librustc/ty/print/pretty.rs @@ -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("\""));