From 053c1b2b10d8b9668560236eaaf397d016afebdf Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 14 Nov 2025 00:19:20 -0800 Subject: [PATCH] implement Display for SimValue --- crates/fayalite/src/sim/value.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/fayalite/src/sim/value.rs b/crates/fayalite/src/sim/value.rs index ff6660c..f1fc40c 100644 --- a/crates/fayalite/src/sim/value.rs +++ b/crates/fayalite/src/sim/value.rs @@ -157,7 +157,13 @@ pub struct SimValue { inner: AlternatingCell>, } -impl Clone for SimValue { +impl> fmt::Display for SimValue { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + T::SimValue::fmt(self, f) + } +} + +impl Clone for SimValue { fn clone(&self) -> Self { Self { inner: AlternatingCell::new_unique(self.inner.share().clone()),