diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-04-24 14:10:31 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-25 10:07:02 +0200 |
| commit | ecee75d114a648885cd490f3620a3e58cee64bf8 (patch) | |
| tree | e507e80404f806fec89c88cc86a708db7662eade /src/librustc/ty | |
| parent | 90bb861b2e11ad7a2c6c8694ddbda2794ce4beb0 (diff) | |
| download | rust-ecee75d114a648885cd490f3620a3e58cee64bf8.tar.gz rust-ecee75d114a648885cd490f3620a3e58cee64bf8.zip | |
Use `write_char` to skip the formatting infrastructure
Diffstat (limited to 'src/librustc/ty')
| -rw-r--r-- | src/librustc/ty/print/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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("\"")); |
