forked from libre-chip/fayalite
simplify SimValue Debug format, making complex structures much easier to read
This commit is contained in:
parent
fbe4585578
commit
0f94dc6dcd
1 changed files with 1 additions and 5 deletions
|
|
@ -358,11 +358,7 @@ impl<T: Type> DerefMut for SimValue<T> {
|
||||||
|
|
||||||
impl<T: Type> fmt::Debug for SimValue<T> {
|
impl<T: Type> fmt::Debug for SimValue<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
let inner = self.inner.share();
|
T::SimValue::fmt(&**self, f)
|
||||||
f.debug_struct("SimValue")
|
|
||||||
.field("ty", &inner.ty)
|
|
||||||
.field("value", &inner.value)
|
|
||||||
.finish()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue