Skip to content

Commit 2271fcd

Browse files
committed
[Rust] Enclose the BnString with "" in the Debug impl
1 parent 7cde0ec commit 2271fcd

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 Eq 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)