1 2 3 4 5 6 7 8 9
use core::fmt::{self, Debug}; #[derive(Debug)] pub struct GErr<T>(pub T); impl<T: Debug> fmt::Display for GErr<T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { self.0.fmt(f) } }