Skip to content

Commit f87d548

Browse files
committed
Remove unnecessary cast
1 parent 1ab234f commit f87d548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/naive/date.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ mod tests {
22492249
assert_eq!(
22502250
NaiveDate::from_ymd_opt(2022, 8, 3)
22512251
.unwrap()
2252-
.checked_sub_months(Months::new((i32::MIN as i64).unsigned_abs() as u32 + 1)),
2252+
.checked_sub_months(Months::new(i32::MIN.unsigned_abs() + 1)),
22532253
None
22542254
);
22552255

0 commit comments

Comments
 (0)