diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/parser/timetype.rs | 14 |
2 files changed, 8 insertions, 8 deletions
@@ -14,7 +14,7 @@ repository = "https://github.com/matthiasbeyer/kairos" [dependencies] chrono = "0.4" -nom = "3.2" +nom = "3" iso8601 = "0.2" thiserror = "1" diff --git a/src/parser/timetype.rs b/src/parser/timetype.rs index 1437242..40ae3f7 100644 --- a/src/parser/timetype.rs +++ b/src/parser/timetype.rs @@ -290,13 +290,13 @@ impl IntoTimeType for TimeType { } -/// Main entry function for timetype parser -/// -/// # Notice -/// -/// Note that this function returns a parser::TimeType, not a timetype::TimeType. Though, the -/// parser::TimeType can be `Into::into()`ed. -/// +// Main entry function for timetype parser +// +// # Notice +// +// Note that this function returns a parser::TimeType, not a timetype::TimeType. Though, the +// parser::TimeType can be `Into::into()`ed. +// named!(pub timetype<TimeType>, alt!( do_parse!(d: date >> (TimeType::Date(d))) | do_parse!(a: amount_expr >> (TimeType::AmountExpr(a))) |