1 2 3 4 5 6 7 8 9 10 11
#[deprecated] #[macro_export] macro_rules! wrap_display { ($id_type: ident) => { impl std::fmt::Display for $id_type { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } } }; }