simplify SimValue Debug format, making complex structures much easier to read
Some checks failed
/ test (pull_request) Failing after 1m21s
Some checks failed
/ test (pull_request) Failing after 1m21s
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> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let inner = self.inner.share();
|
||||
f.debug_struct("SimValue")
|
||||
.field("ty", &inner.ty)
|
||||
.field("value", &inner.value)
|
||||
.finish()
|
||||
T::SimValue::fmt(&**self, f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue