diff options
author | Nadrieril | 2019-03-20 00:44:27 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-20 00:44:27 +0100 |
commit | 640a36906361ef5ef98fb66fd37246f084739d25 (patch) | |
tree | 630a18bf8bfc7820c12e0144738878eca8ff6331 /iter_patterns | |
parent | 3a967a0eef8b69f7fc8bbc7655945edbbe2b579e (diff) |
Handle simple parsing cases with new macros
Diffstat (limited to '')
-rw-r--r-- | iter_patterns/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iter_patterns/src/lib.rs b/iter_patterns/src/lib.rs index 75fe51c..14ed4c9 100644 --- a/iter_patterns/src/lib.rs +++ b/iter_patterns/src/lib.rs @@ -138,7 +138,7 @@ macro_rules! match_vec { * // x: usize * // y: impl Iterator<Option<usize>> * // z: Option<usize> - * } + * }, * [x, Some(0)] => { * // x: Option<usize> * }, @@ -152,7 +152,7 @@ macro_rules! match_iter { ($arg:expr; $($args:tt)*) => { { let vec: Vec<_> = $arg.collect(); - $crate::match_vec!(vec, $($args)*) + $crate::match_vec!(vec; $($args)*) } }; } |