summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-12 15:56:14 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit1dcb19abc006a4fe0688934c8a08f0b4c61a75b2 (patch)
tree3fe0eb8739f48efd2c22f55a0a8cc05e9ee546dc /rust/src/string.rs
parentcc989d356c08b4ae7828886033ee8e32d7bcab5d (diff)
[Rust] Enclose the `BnString` with "" in the `Debug` impl
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 6083d300..0a1191d5 100644
--- a/rust/src/string.rs
+++ b/rust/src/string.rs
@@ -165,7 +165,7 @@ impl Eq 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)
}
}