Just passing the enum debug on to the enum display function.

This should probably be changed later, but for now it will work alright.
This commit is contained in:
Myrddin Dundragon 2018-04-12 23:08:29 -04:00
parent 8b5d5a9c57
commit cab5040f22

View File

@ -89,7 +89,7 @@ macro_rules! c_enum
{ {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result
{ {
write!(f, "{}", self.to_str()) ::std::fmt::Display::fmt(self, f)
} }
} }