diff options
author | dfhoughton <dfhoughton@gmail.com> | 2021-07-03 08:25:04 -0400 |
---|---|---|
committer | dfhoughton <dfhoughton@gmail.com> | 2021-07-03 08:25:04 -0400 |
commit | 520ad1478675288d2ebd1bbfc1fdbe66c41e2b55 (patch) | |
tree | 9643a308ec9495f5e5df0673a403eac0f4b145cc | |
parent | ae58b2c4e2641ba78495a315098c78a5f72e247e (diff) | |
download | two-timer-master.zip |
-rw-r--r-- | CHANGES.md | 4 | ||||
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | tests/tests.rs | 3 |
4 files changed, 6 insertions, 5 deletions
@@ -1,6 +1,8 @@ # Change Log -## 2.2.1 *2020-3-29* +## 2.2.2 *2021-7-3* +* slight modernization +## 2.2.1 *2021-3-29* * changing the license from GPL 2 to MIT ## 2.2.0 *2020-10-3* * adding `default_to_past` configuration parameter to allow people to interpret relative times like "Tuesday" as the nearest such moment in the future rather than the past @@ -191,7 +191,7 @@ dependencies = [ [[package]] name = "two_timer" -version = "2.2.1" +version = "2.2.2" dependencies = [ "chrono", "lazy_static", @@ -1,6 +1,6 @@ [package] name = "two_timer" -version = "2.2.1" +version = "2.2.2" authors = ["dfhoughton <dfhoughton@gmail.com>"] description="parser for English time expressions" homepage="https://github.com/dfhoughton/two-timer" diff --git a/tests/tests.rs b/tests/tests.rs index f33eeb5..a2852d8 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,4 +1,3 @@ -#![feature(test)] extern crate two_timer; use two_timer::{parsable, parse, Config, TimeError}; extern crate chrono; @@ -1830,7 +1829,7 @@ fn since_the_end_of_may_misordered() { Ok((..)) => assert!(false, "this should not succeed"), Err(e) => match e { TimeError::Misordered(_) => assert!(true, "correct error"), - _ => assert!(false, format!("unexpected error: {:?}", e)), + _ => assert!(false, "unexpected error: {:?}", e), }, } } |