From f89e2992402609678ac520abe1887e3d430673b3 Mon Sep 17 00:00:00 2001 From: Joshix Date: Fri, 12 Sep 2025 17:00:00 +0000 Subject: [PATCH 1/2] improve debug implementation --- src/string.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/string.rs b/src/string.rs index 907dee1..85593fd 100644 --- a/src/string.rs +++ b/src/string.rs @@ -247,9 +247,7 @@ impl core::fmt::Display for FixedString { impl core::fmt::Debug for FixedString { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.write_char('"')?; - f.write_str(self)?; - f.write_char('"') + write!(f, "{:?}", self.as_str()) } } From 8a652ac596a2f2050cf961ac2675fefa98bf4e42 Mon Sep 17 00:00:00 2001 From: Joshix Date: Fri, 12 Sep 2025 17:00:00 +0000 Subject: [PATCH 2/2] remove unused import --- src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.rs b/src/string.rs index 85593fd..ce8f0a8 100644 --- a/src/string.rs +++ b/src/string.rs @@ -4,7 +4,7 @@ use alloc::{ string::{String, ToString}, sync::Arc, }; -use core::{borrow::Borrow, fmt::Write as _, hash::Hash, str::FromStr}; +use core::{borrow::Borrow, hash::Hash, str::FromStr}; use crate::{ array::FixedArray,