add debug trait to xous-string

This commit is contained in:
bunnie 2021-01-17 17:00:57 +08:00
parent cc66c3911a
commit b6efb15488

View file

@ -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)
}
}