From cab5040f22c646d52237a5f05eca0dbd742006f7 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Thu, 12 Apr 2018 23:08:29 -0400 Subject: [PATCH] Just passing the enum debug on to the enum display function. This should probably be changed later, but for now it will work alright. --- src/c_enum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_enum.rs b/src/c_enum.rs index b1cef18..1b31759 100644 --- a/src/c_enum.rs +++ b/src/c_enum.rs @@ -89,7 +89,7 @@ macro_rules! c_enum { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "{}", self.to_str()) + ::std::fmt::Display::fmt(self, f) } }