From 0f94dc6dcd408f1223581b47fe202fe7680fb014 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 14 Dec 2025 20:41:16 -0800 Subject: [PATCH] simplify SimValue Debug format, making complex structures much easier to read --- crates/fayalite/src/sim/value.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/fayalite/src/sim/value.rs b/crates/fayalite/src/sim/value.rs index def2ae3..b6a4e4b 100644 --- a/crates/fayalite/src/sim/value.rs +++ b/crates/fayalite/src/sim/value.rs @@ -358,11 +358,7 @@ impl DerefMut for SimValue { impl fmt::Debug for SimValue { 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) } }