|
6 | 6 | //! formatting operations.
|
7 | 7 |
|
8 | 8 | use crate::neo_marker::{DateInputMarkers, GetField, TimeMarkers, ZoneMarkers};
|
| 9 | +use crate::scaffold::IntoOption; |
9 | 10 | use icu_calendar::any_calendar::AnyCalendarKind;
|
10 | 11 | use icu_calendar::{Date, Iso, Time};
|
11 | 12 | use icu_timezone::{TimeZoneBcp47Id, UtcOffset, ZoneVariant};
|
@@ -55,19 +56,19 @@ impl ExtractedInput {
|
55 | 56 | + GetField<Z::TimeZoneLocalTimeInput>,
|
56 | 57 | {
|
57 | 58 | Self {
|
58 |
| - year: GetField::<D::YearInput>::get_field(input).into(), |
59 |
| - month: GetField::<D::MonthInput>::get_field(input).into(), |
60 |
| - day_of_month: GetField::<D::DayOfMonthInput>::get_field(input).into(), |
61 |
| - iso_weekday: GetField::<D::DayOfWeekInput>::get_field(input).into(), |
62 |
| - any_calendar_kind: GetField::<D::AnyCalendarKindInput>::get_field(input).into(), |
63 |
| - hour: GetField::<T::HourInput>::get_field(input).into(), |
64 |
| - minute: GetField::<T::MinuteInput>::get_field(input).into(), |
65 |
| - second: GetField::<T::SecondInput>::get_field(input).into(), |
66 |
| - nanosecond: GetField::<T::NanoSecondInput>::get_field(input).into(), |
67 |
| - time_zone_id: GetField::<Z::TimeZoneIdInput>::get_field(input).into(), |
68 |
| - offset: GetField::<Z::TimeZoneOffsetInput>::get_field(input).into(), |
69 |
| - zone_variant: GetField::<Z::TimeZoneVariantInput>::get_field(input).into(), |
70 |
| - local_time: GetField::<Z::TimeZoneLocalTimeInput>::get_field(input).into(), |
| 59 | + year: GetField::<D::YearInput>::get_field(input).into_option(), |
| 60 | + month: GetField::<D::MonthInput>::get_field(input).into_option(), |
| 61 | + day_of_month: GetField::<D::DayOfMonthInput>::get_field(input).into_option(), |
| 62 | + iso_weekday: GetField::<D::DayOfWeekInput>::get_field(input).into_option(), |
| 63 | + any_calendar_kind: GetField::<D::AnyCalendarKindInput>::get_field(input).into_option(), |
| 64 | + hour: GetField::<T::HourInput>::get_field(input).into_option(), |
| 65 | + minute: GetField::<T::MinuteInput>::get_field(input).into_option(), |
| 66 | + second: GetField::<T::SecondInput>::get_field(input).into_option(), |
| 67 | + nanosecond: GetField::<T::NanoSecondInput>::get_field(input).into_option(), |
| 68 | + time_zone_id: GetField::<Z::TimeZoneIdInput>::get_field(input).into_option(), |
| 69 | + offset: GetField::<Z::TimeZoneOffsetInput>::get_field(input).into_option(), |
| 70 | + zone_variant: GetField::<Z::TimeZoneVariantInput>::get_field(input).into_option(), |
| 71 | + local_time: GetField::<Z::TimeZoneLocalTimeInput>::get_field(input).into_option(), |
71 | 72 | }
|
72 | 73 | }
|
73 | 74 | }
|
0 commit comments