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 -1
View File
@@ -1618,7 +1618,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
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("\""));