use std::fmt; pub(crate) struct DisplayAsDebug(pub(crate) T); impl From for DisplayAsDebug { fn from(value: T) -> Self { DisplayAsDebug(value) } } impl fmt::Debug for DisplayAsDebug { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { self.0.fmt(f) } }