From fcab20579ae9522a214433e9d0b74c4d33b703b2 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 14 Sep 2025 19:02:55 -0400 Subject: [PATCH] cl-structures/intern: Debug-print interned objects with custom sigil --- compiler/cl-structures/src/intern.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/cl-structures/src/intern.rs b/compiler/cl-structures/src/intern.rs index 438819e..cceb3e4 100644 --- a/compiler/cl-structures/src/intern.rs +++ b/compiler/cl-structures/src/intern.rs @@ -44,9 +44,8 @@ pub mod interned { impl Debug for Interned<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - f.debug_struct("Interned") - .field("value", &self.value) - .finish() + write!(f, "~")?; + self.value.fmt(f) } } impl<'a, T: ?Sized> Interned<'a, T> {