summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-11-06 23:03:04 +0100
committerLaurenz <laurmaedje@gmail.com>2019-11-06 23:18:48 +0100
commit271af7ed0308c9eca7da5dce93d52d38be84889f (patch)
treebba0411f9eb7c2db005224d9f8293a00c00b56b4 /src/macros.rs
parent110e4b9cb9dcbe590d345d8883f0c5f111752f1c (diff)
Parse keyword arguments 📋
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs7
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)
+ }
+ }
+ );
}