summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-06 22:38:49 -0500
committerMason Reed <mason@vector35.com>2025-02-06 22:54:17 -0500
commit610622698fe39dbcb406c7efa5154f7b183f5f4a (patch)
tree968fa19b3db3c70aa313796bf8b05b92deb94ed6 /rust/src/string.rs
parentfe3ed7630079c1166bb4529100ffa7c4ae97a130 (diff)
Correctly quote the string in the Debug impl for BnString
Diffstat (limited to 'rust/src/string.rs')
-rw-r--r--rust/src/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/string.rs b/rust/src/string.rs
index f3b00c95..c0d6daba 100644
--- a/rust/src/string.rs
+++ b/rust/src/string.rs
@@ -165,7 +165,7 @@ impl fmt::Display for BnString {
impl fmt::Debug for BnString {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "{}", self.to_string_lossy())
+ self.to_string_lossy().fmt(f)
}
}