style: cargo fmt --all
This commit is contained in:
@@ -13,10 +13,14 @@ fn now_is_recent() {
|
||||
#[test]
|
||||
fn ordering() {
|
||||
let a = DateTimeStamp::from_datetime(
|
||||
chrono::DateTime::parse_from_rfc3339("2024-01-01T00:00:00Z").unwrap().into(),
|
||||
chrono::DateTime::parse_from_rfc3339("2024-01-01T00:00:00Z")
|
||||
.unwrap()
|
||||
.into(),
|
||||
);
|
||||
let b = DateTimeStamp::from_datetime(
|
||||
chrono::DateTime::parse_from_rfc3339("2025-01-01T00:00:00Z").unwrap().into(),
|
||||
chrono::DateTime::parse_from_rfc3339("2025-01-01T00:00:00Z")
|
||||
.unwrap()
|
||||
.into(),
|
||||
);
|
||||
assert!(a < b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user