We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd970d commit 08e6257Copy full SHA for 08e6257
src/string.rs
@@ -4,7 +4,7 @@ use alloc::{
4
string::{String},
5
sync::Arc,
6
};
7
-use core::{borrow::Borrow, fmt::Write as _, hash::Hash, str::FromStr};
+use core::{borrow::Borrow, hash::Hash, str::FromStr};
8
9
use crate::{
10
array::FixedArray,
@@ -247,9 +247,7 @@ impl<LenT: ValidLength> core::fmt::Display for FixedString<LenT> {
247
248
impl<LenT: ValidLength> core::fmt::Debug for FixedString<LenT> {
249
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
250
- f.write_char('"')?;
251
- f.write_str(self)?;
252
- f.write_char('"')
+ write!(f, "{:?}", self.as_str())
253
}
254
255
0 commit comments