Merge pull request #69 from cakebaker/clippy_fix_warnings

clippy: fix warnings
This commit is contained in:
Sylvestre Ledru
2024-03-24 17:05:35 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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!(
+1 -1
View File
@@ -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]