Skip to content

Commit

Permalink
Add NeoOptions with trait integration (#5248)
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc authored Jul 19, 2024
1 parent 6f84168 commit 0704266
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 110 deletions.
2 changes: 1 addition & 1 deletion components/datetime/benches/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn datetime_benches(c: &mut Criterion) {
TypedNeoFormatter::<Gregorian, _>::try_new_with_components(
&locale.into(),
neo_components,
length,
length.into(),
)
.expect("Failed to create TypedNeoFormatter.")
};
Expand Down
5 changes: 3 additions & 2 deletions components/datetime/src/format/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,9 @@ mod tests {
use icu_calendar::Date;

let locale = "en-u-ca-japanese".parse().unwrap();
let dtf = NeoFormatter::<NeoAutoDateMarker>::try_new(&locale, NeoSkeletonLength::Medium)
.expect("DateTimeFormat construction succeeds");
let dtf =
NeoFormatter::<NeoAutoDateMarker>::try_new(&locale, NeoSkeletonLength::Medium.into())
.expect("DateTimeFormat construction succeeds");

let date = Date::try_new_gregorian_date(1800, 9, 1).expect("Failed to construct Date.");
let date = date
Expand Down
Loading

0 comments on commit 0704266

Please sign in to comment.