Skip to content

Commit ecee75d

Browse files
committed
Use write_char to skip the formatting infrastructure
1 parent 90bb861 commit ecee75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/print/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ define_print_and_forward_display! {
16181618
p!(write("b\""));
16191619
for &c in byte_str {
16201620
for e in std::ascii::escape_default(c) {
1621-
p!(write("{}", e as char));
1621+
cx.write_char(e as char)?;
16221622
}
16231623
}
16241624
p!(write("\""));

0 commit comments

Comments
 (0)