LibUnicode: Remove redundant month casts

Remove three no-op `u8` casts from calendar date conversions.
This commit is contained in:
Andreas Kling 2026-04-16 21:30:49 +02:00 committed by Andreas Kling
parent 3844edaaed
commit 0755c7d180

View file

@ -293,7 +293,7 @@ fn iso_date_to_calendar_date_impl(
} else {
(
calendar_date.year().extended_year(),
calendar_date.month().ordinal as u8,
calendar_date.month().ordinal,
)
};
@ -354,7 +354,7 @@ fn calendar_date_to_iso_date_impl(
Some(FfiISODate {
year: iso_date.year().extended_year(),
month: iso_date.month().ordinal as u8,
month: iso_date.month().ordinal,
day: iso_date.day_of_month().0,
})
}
@ -479,7 +479,7 @@ fn calendar_year_and_month_code_to_iso_date_impl(
Some(FfiISODate {
year: iso_date.year().extended_year(),
month: iso_date.month().ordinal as u8,
month: iso_date.month().ordinal,
day: iso_date.day_of_month().0,
})
}