Include fix length in debug string

This commit is contained in:
Gwilym Kuiper 2021-06-05 17:23:06 +01:00
parent 8b2dfdffc1
commit 8b1ad400a7

View file

@ -226,6 +226,6 @@ impl<const N: usize> Display for Num<N> {
impl<const N: usize> Debug for Num<N> { impl<const N: usize> Debug for Num<N> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "{}", self) write!(f, "Num<{}>({})", N, self)
} }
} }