Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed May 8, 2023
1 parent ef35c92 commit 3fbcfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/naive/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit 3fbcfed

Please sign in to comment.