summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-06 12:50:20 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-06 12:50:20 +0100
commita93b1ab003affb0d72e9da4007b04a2a6cfd4462 (patch)
treebdc6f1c14259e7745fa59c7e51d8327ee5df3061 /src/macros.rs
parent2ee5810fecb96a8d4e0d078faecc8c91096d6881 (diff)
Formatting 🛀
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) => (