You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use human_date_parser::{from_human_time,ParseResult};fnmain(){let date = from_human_time("2023-11-31");let foo = match date {Ok(ParseResult::DateTime(_)) => 1,Ok(ParseResult::Date(_)) => 2,Ok(ParseResult::Time(_)) => 3,Err(_) => 4,};println!("{foo}");}
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseError(OutOfRange)',
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f
/human-date-parser-0.1.1/src/lib.rs:186:64
Here's a test case:
Here's the section on lib.rs:
The text was updated successfully, but these errors were encountered: