cargo fmt

This commit is contained in:
Ben Schofield
2023-06-06 10:26:05 -07:00
parent bc33770075
commit 7ee33d1fb1
+6 -4
View File
@@ -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()
);
}
}
}