summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/macros.rs b/src/macros.rs
index ebe1cad7..5d413870 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -1,5 +1,6 @@
//! Auxiliary macros.
+
/// Create trait implementations for an error type.
macro_rules! error_type {
(
@@ -36,16 +37,6 @@ macro_rules! error_type {
};
}
-/// Shorthand for checking whether an expression matches a pattern.
-macro_rules! matches {
- ($expr:expr, $($pattern:tt)*) => {
- match $expr {
- $($pattern)* => true,
- _ => false,
- }
- };
-}
-
/// Create a `Debug` implementation from a `Display` implementation.
macro_rules! debug_display {
($type:ident) => (