diff options
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs index 9fba1d59..70c67105 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -49,4 +49,11 @@ macro_rules! debug_display { } } ); + ($type:ident; $generics:tt where $($bounds:tt)*) => ( + impl<$generics> std::fmt::Debug for $type<$generics> where $($bounds)* { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + std::fmt::Display::fmt(self, f) + } + } + ); } |
