Skip to content

Commit 6106226

Browse files
committed
Correctly quote the string in the Debug impl for BnString
1 parent fe3ed76 commit 6106226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl fmt::Display for BnString {
165165

166166
impl fmt::Debug for BnString {
167167
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
168-
write!(f, "{}", self.to_string_lossy())
168+
self.to_string_lossy().fmt(f)
169169
}
170170
}
171171

0 commit comments

Comments
 (0)