From 0dbb7c565f7e8dba02b1c52f114ee8e1a2c69552 Mon Sep 17 00:00:00 2001
From: Yury <yury.korolev@gmail.com>
Date: Wed, 23 Oct 2024 12:09:56 +0300
Subject: [PATCH] impl std::fmt::Display for arc::Retained

---
 cidre/src/arc.rs | 6 ++++++
 1 file changed, 6 insertions(+)

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<T: Release + 'static>(&'static mut T);
 #[repr(transparent)]
 pub struct Retained<T: Release + 'static>(&'static mut T);
 
+impl<T: Release + std::fmt::Display> std::fmt::Display for Retained<T> {
+    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+        self.0.fmt(f)
+    }
+}
+
 impl<T: Retain + PartialEq> PartialEq for Retained<T> {
     fn eq(&self, other: &Self) -> bool {
         self.0 == other.0