Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions components/experimental/src/dimension/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

pub mod currency;
pub mod pattern_key;
pub mod percent;
pub mod units;
pub mod units_essentials;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use icu_provider::prelude::*;
/// </div>
pub use crate::provider::Baked;

use super::pattern_key::PatternKey;
use super::patterns::PatternKey;

icu_provider::data_marker!(
/// `UnitsEssentialsV1`
Expand Down
7 changes: 7 additions & 0 deletions components/experimental/src/dimension/provider/units/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

pub mod display_names;
pub mod essentials;
pub mod patterns;
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use zerovec::{
ule::{AsULE, UleError, ULE},
};

use crate::dimension::provider::units_essentials::CompoundCount;
use crate::dimension::provider::units::essentials::CompoundCount;

#[derive(Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
Expand Down
2 changes: 1 addition & 1 deletion components/experimental/src/dimension/units/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//! Experimental.

use crate::dimension::provider::units::UnitsDisplayName;
use crate::dimension::provider::units::display_names::UnitsDisplayName;
use fixed_decimal::Decimal;
use icu_decimal::DecimalFormatter;
use icu_plurals::PluralRules;
Expand Down
4 changes: 2 additions & 2 deletions components/experimental/src/dimension/units/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use icu_provider::DataPayload;

use super::format::FormattedUnit;
use super::options::{UnitsFormatterOptions, Width};
use crate::dimension::provider::units::UnitsDisplayNameV1;
use crate::dimension::provider::units::display_names::UnitsDisplayNameV1;
use icu_provider::prelude::*;
use smallvec::SmallVec;

Expand Down Expand Up @@ -133,7 +133,7 @@ impl UnitsFormatter {
) -> Result<Self, DataError>
where
D: ?Sized
+ DataProvider<super::super::provider::units::UnitsDisplayNameV1>
+ DataProvider<super::super::provider::units::display_names::UnitsDisplayNameV1>
+ DataProvider<icu_decimal::provider::DecimalSymbolsV1>
+ DataProvider<icu_decimal::provider::DecimalDigitsV1>
+ DataProvider<icu_plurals::provider::PluralsCardinalV1>,
Expand Down
2 changes: 1 addition & 1 deletion components/experimental/src/duration/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

use crate::dimension::provider::units::UnitsDisplayNameV1;
use crate::dimension::provider::units::display_names::UnitsDisplayNameV1;
use crate::dimension::units::formatter::{UnitsFormatter, UnitsFormatterPreferences};
use crate::dimension::units::options::{UnitsFormatterOptions, Width};
use crate::duration::options::FieldStyle;
Expand Down
4 changes: 2 additions & 2 deletions components/experimental/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ pub mod provider {
super::dimension::provider::currency::patterns::CurrencyPatternsDataV1::INFO,
super::dimension::provider::currency::extended::CurrencyExtendedDataV1::INFO,
super::dimension::provider::percent::PercentEssentialsV1::INFO,
super::dimension::provider::units_essentials::UnitsEssentialsV1::INFO,
super::dimension::provider::units::UnitsDisplayNameV1::INFO,
super::dimension::provider::units::essentials::UnitsEssentialsV1::INFO,
super::dimension::provider::units::display_names::UnitsDisplayNameV1::INFO,
super::displaynames::provider::LanguageDisplayNamesV1::INFO,
super::duration::provider::DigitalDurationDataV1::INFO,
super::displaynames::provider::LocaleDisplayNamesV1::INFO,
Expand Down
14 changes: 7 additions & 7 deletions provider/data/experimental/data/units_display_name_v1.rs.data

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions provider/data/experimental/data/units_essentials_v1.rs.data

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading