diff --git a/cidre/src/arc.rs b/cidre/src/arc.rs index b1a63169..1ceca0b9 100644 --- a/cidre/src/arc.rs +++ b/cidre/src/arc.rs @@ -23,6 +23,12 @@ pub struct Allocated(&'static mut T); #[repr(transparent)] pub struct Retained(&'static mut T); +impl std::fmt::Display for Retained { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.0.fmt(f) + } +} + impl PartialEq for Retained { fn eq(&self, other: &Self) -> bool { self.0 == other.0