1/n render html content based on a given url
@@ -36,6 +36,12 @@ macro_rules! type_id {
write!(f, "{}({})", stringify!($name), self.0)
}
}
+
+ impl fmt::Display for $name {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ write!(f, "{}", self.0)
+ }
+ }
};
}
