mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-30 22:42:08 +00:00
Remove unnecessary cast
This commit is contained in:
parent
1ab234fe5a
commit
f87d548601
@ -2249,7 +2249,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
NaiveDate::from_ymd_opt(2022, 8, 3)
|
||||
.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
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user