From 1dcb19abc006a4fe0688934c8a08f0b4c61a75b2 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 12 May 2025 15:56:14 -0400 Subject: [Rust] Enclose the `BnString` with "" in the `Debug` impl --- rust/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/string.rs') 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) } } -- cgit v1.3.1