cl-structures/intern: Debug-print interned objects with custom sigil

This commit is contained in:
John 2025-09-14 19:02:55 -04:00
parent 239785b322
commit fcab20579a

View File

@ -44,9 +44,8 @@ pub mod interned {
impl<T: ?Sized + Debug> 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> {