diff --git a/xous-rs/src/string.rs b/xous-rs/src/string.rs index 9049add34..ababbb082 100644 --- a/xous-rs/src/string.rs +++ b/xous-rs/src/string.rs @@ -119,3 +119,9 @@ impl<'a> core::fmt::Write for String<'a> { Ok(()) } } + +impl<'a> core::fmt::Debug for String<'a> { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + write!(f, "{}", self.s) + } +}