From 2128578c992a2415d34b1845494d74e0e40e8722 Mon Sep 17 00:00:00 2001 From: Joshua Mo <102877324+joshua-mo-143@users.noreply.github.com> Date: Fri, 19 Apr 2024 02:28:39 +0100 Subject: [PATCH] impl Display for CachePadded (#1097) Co-authored-by: Taiki Endo --- crossbeam-utils/src/cache_padded.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crossbeam-utils/src/cache_padded.rs b/crossbeam-utils/src/cache_padded.rs index cf6ebfc45..aa5260136 100644 --- a/crossbeam-utils/src/cache_padded.rs +++ b/crossbeam-utils/src/cache_padded.rs @@ -207,3 +207,9 @@ impl From for CachePadded { Self::new(t) } } + +impl fmt::Display for CachePadded { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Display::fmt(&self.value, f) + } +}