/ src / impl_display.rs
impl_display.rs
 1  // impl_display: Implements the Display trait for OperatingSystem and Architecture
 2  #[macro_export]
 3  macro_rules! impl_display {
 4      ($type:ident) => {
 5          impl Display for $type {
 6              fn fmt(&self, f: &mut Formatter<'_>) -> Result {
 7                  write!(f, "{:?}", self)
 8              }
 9          }
10      };
11  }