diff --git a/src/string.rs b/src/string.rs index 907dee1..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, @@ -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()) } }