Remove unnecessary cast

This commit is contained in:
Dirkjan Ochtman 2023-05-08 13:41:19 +02:00
parent 1ab234fe5a
commit f87d548601

View File

@ -2249,7 +2249,7 @@ mod tests {
assert_eq!( assert_eq!(
NaiveDate::from_ymd_opt(2022, 8, 3) NaiveDate::from_ymd_opt(2022, 8, 3)
.unwrap() .unwrap()
.checked_sub_months(Months::new((i32::MIN as i64).unsigned_abs() as u32 + 1)), .checked_sub_months(Months::new(i32::MIN.unsigned_abs() + 1)),
None None
); );