summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/parser/timetype.rs14
2 files changed, 8 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 313669a..383257a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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)))