You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
Merge pull request #69 from cakebaker/clippy_fix_warnings
clippy: fix warnings
This commit is contained in:
+2
-2
@@ -382,7 +382,7 @@ mod tests {
|
||||
];
|
||||
|
||||
for relative_time in relative_times {
|
||||
assert_eq!(parse_datetime(relative_time).is_ok(), true);
|
||||
assert!(parse_datetime(relative_time).is_ok());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -401,7 +401,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_weekday() {
|
||||
// add some constant hours and minutes and seconds to check its reset
|
||||
let date = Local.with_ymd_and_hms(2023, 02, 28, 10, 12, 3).unwrap();
|
||||
let date = Local.with_ymd_and_hms(2023, 2, 28, 10, 12, 3).unwrap();
|
||||
|
||||
// 2023-2-28 is tuesday
|
||||
assert_eq!(
|
||||
|
||||
@@ -52,7 +52,7 @@ mod tests {
|
||||
use std::env;
|
||||
|
||||
fn get_test_date() -> DateTime<Local> {
|
||||
Local.with_ymd_and_hms(2024, 03, 03, 0, 0, 0).unwrap()
|
||||
Local.with_ymd_and_hms(2024, 3, 3, 0, 0, 0).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user