Skip to content

Commit

Permalink
Add missing escaping call in <YarnRef as Debug>
Browse files Browse the repository at this point in the history
  • Loading branch information
mcy committed Aug 31, 2023
1 parent c30c342 commit d0865d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reffed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl<Buf: crate::Buf + ?Sized> fmt::Debug for YarnRef<'_, Buf> {
write!(f, "\"")?;
for chunk in self.utf8_chunks() {
match chunk {
Ok(utf8) => f.write_str(utf8)?,
Ok(utf8) => write!(f, "{}", utf8.escape_debug())?,
Err(bytes) => {
for b in bytes {
write!(f, "\\x{:02X}", b)?;
Expand Down

0 comments on commit d0865d0

Please sign in to comment.