diff --git a/src/parse_datetime.rs b/src/parse_datetime.rs index 76bc719..fcf5fae 100644 --- a/src/parse_datetime.rs +++ b/src/parse_datetime.rs @@ -234,17 +234,19 @@ mod tests { } } } - + /// Used to test example code presented in the README. mod readme_test { use crate::parse_datetime::from_str; - use chrono::{TimeZone, Local}; + use chrono::{Local, TimeZone}; #[test] fn test_readme_code() { let dt = from_str("2021-02-14 06:37:47"); - assert_eq!(dt.unwrap(), Local.with_ymd_and_hms(2021, 2, 14, 6, 37, 47).unwrap()); + assert_eq!( + dt.unwrap(), + Local.with_ymd_and_hms(2021, 2, 14, 6, 37, 47).unwrap() + ); } - } }