diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-15 19:55:47 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-15 19:55:47 +0100 |
| commit | 0917d89bb899380ba897382b4945c8426f25c66d (patch) | |
| tree | a9936019abcc7642657e14a828661c21f579dd70 /src/macros.rs | |
| parent | 9473ae61e9cfc419eb6b48fb0ed15441cc7ad48b (diff) | |
Generalize flex layouter 🎯
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/macros.rs b/src/macros.rs index a162d3cc..70c67105 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -40,16 +40,6 @@ macro_rules! error_type { }; } -/// Whether an expression matches a pattern. -macro_rules! matches { - ($val:expr, $($pattern:tt)*) => ( - match $val { - $($pattern)* => true, - _ => false, - } - ); -} - /// Create a `Debug` implementation from a `Display` implementation. macro_rules! debug_display { ($type:ident) => ( |
