Adjusting the Display implementation.

Display will automatically implement the to_string functionality, so the
explicit implementation was removed.
This commit is contained in:
2017-05-11 16:49:46 -04:00
parent 8efb6fedff
commit 8b5d5a9c57
2 changed files with 36 additions and 51 deletions

View File

@ -83,12 +83,6 @@ macro_rules! c_enum
$($name::$variant => {stringify!($variant)})*
}
}
/// Get a String representation of this variant.
pub fn to_string(&self) -> String
{
String::from(self.to_str())
}
}
impl ::std::fmt::Debug for $name