diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-10-28 21:35:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-10-28 21:35:52 +0200 |
commit | ffdac059cc0384b52758ce8eaba0dcd3bc5d276b (patch) | |
tree | e98355e8b9441f65e4b60a90af1066f1e324e47a /src | |
parent | 8cc947e67d99c6c00f17b9c443f8c1c2bc721410 (diff) |
Use alt_complete!() here
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs index 16973e8..66900a4 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -108,7 +108,7 @@ named!(amount_parser<Amount>, do_parse!( #[derive(Debug, PartialEq, Eq)] pub struct Amount(i64, Unit); -named!(iter_spec<Iterspec>, alt!( +named!(iter_spec<Iterspec>, alt_complete!( tag!("secondly") => { |_| Iterspec::Secondly } | tag!("minutely") => { |_| Iterspec::Minutely } | tag!("hourly") => { |_| Iterspec::Hourly } | |