Skip to content

Commit

Permalink
type inference doesn't work any more
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 18, 2024
1 parent bb4aa7c commit b5d4c30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffi/capi/src/zoned_formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod ffi {
let zdt = icu_timezone::CustomZonedDateTime {
date: greg.date,
time: greg.time,
zone: time_zone.0.try_into()?,
zone: icu_timezone::TimeZoneInfo::try_from(time_zone.0)?,
};
let _infallible = self.0.format(&zdt).try_write_to(write);
Ok(())
Expand Down Expand Up @@ -123,7 +123,7 @@ pub mod ffi {
let zdt = icu_timezone::CustomZonedDateTime {
date: datetime.0.date.clone(),
time: datetime.0.time,
zone: time_zone.0.try_into()?,
zone: icu_timezone::TimeZoneInfo::try_from(time_zone.0)?,
};
let _infallible = self.0.convert_and_format(&zdt).try_write_to(write);
Ok(())
Expand All @@ -139,7 +139,7 @@ pub mod ffi {
let zdt = icu_timezone::CustomZonedDateTime {
date: datetime.0.date,
time: datetime.0.time,
zone: time_zone.0.try_into()?,
zone: icu_timezone::TimeZoneInfo::try_from(time_zone.0)?,
};
let _infallible = self.0.convert_and_format(&zdt).try_write_to(write);
Ok(())
Expand Down

0 comments on commit b5d4c30

Please sign in to comment.