Skip to content

Commit

Permalink
Rename units/units_constants.rs to units/info.rs (unicode-org#4714)
Browse files Browse the repository at this point in the history
  • Loading branch information
younies authored Mar 20, 2024
1 parent 6afeead commit 3973fda
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

pub mod units_constants;
pub mod info;
2 changes: 1 addition & 1 deletion provider/datagen/src/transform/cldr/units/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use num_bigint::BigInt;
use num_rational::Ratio;
use zerovec::ZeroVec;

use crate::transform::cldr::cldr_serde::units::units_constants::Constant;
use crate::transform::cldr::cldr_serde::units::info::Constant;

/// Represents a scientific number that contains only clean numerator and denominator terms.
/// NOTE:
Expand Down
2 changes: 1 addition & 1 deletion provider/datagen/src/transform/cldr/units/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl DataProvider<UnitsInfoV1Marker> for crate::DatagenProvider {
self.check_req::<UnitsInfoV1Marker>(_req)?;

// Get all the constants in the form of a map from constant name to constant value as numerator and denominator.
let units_data: &cldr_serde::units::units_constants::Resource = self
let units_data: &cldr_serde::units::info::Resource = self
.cldr()?
.core()
.read_and_parse("supplemental/units.json")?;
Expand Down

0 comments on commit 3973fda

Please sign in to comment.