Skip to content

Commit

Permalink
Removing InvariantDataProvider and touching up docs (#2159)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Jul 18, 2022
1 parent f1bd39b commit f187f24
Show file tree
Hide file tree
Showing 23 changed files with 324 additions and 425 deletions.
15 changes: 5 additions & 10 deletions components/datetime/src/any/zoned_datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,16 @@ use icu_plurals::provider::OrdinalV1Marker;
/// use icu::datetime::{options::length, ZonedDateTimeFormatter};
/// use icu::locid::locale;
/// use icu_datetime::TimeZoneFormatterOptions;
/// use icu_provider::inv::InvariantDataProvider;
///
/// let date_provider = InvariantDataProvider;
/// let zone_provider = InvariantDataProvider;
/// let plural_provider = InvariantDataProvider;
/// let decimal_provider = InvariantDataProvider;
/// let provider = icu_testdata::get_provider();
///
/// let options = length::Bag::from_date_time_style(length::Date::Medium, length::Time::Short);
/// let zdtf = ZonedDateTimeFormatter::<Gregorian>::try_new(
/// locale!("en"),
/// &date_provider,
/// &zone_provider,
/// &plural_provider,
/// &decimal_provider,
/// &provider,
/// &provider,
/// &provider,
/// &provider,
/// &options.into(),
/// &TimeZoneFormatterOptions::default(),
/// )
Expand Down Expand Up @@ -96,7 +92,6 @@ impl ZonedAnyDateTimeFormatter {
/// use icu::datetime::{DateTimeFormatterOptions, any::ZonedAnyDateTimeFormatter};
/// use icu::locid::Locale;
/// use icu::datetime::TimeZoneFormatterOptions;
/// use icu_provider::inv::InvariantDataProvider;
/// use std::str::FromStr;
///
/// let provider = icu_testdata::get_provider();
Expand Down
Loading

0 comments on commit f187f24

Please sign in to comment.