From 3973fdad605e99ec3bcbdb36ea63aca0317b9177 Mon Sep 17 00:00:00 2001 From: Younies Mahmoud Date: Wed, 20 Mar 2024 14:38:49 +0100 Subject: [PATCH] Rename `units/units_constants.rs` to `units/info.rs` (#4714) --- .../cldr/cldr_serde/units/{units_constants.rs => info.rs} | 0 provider/datagen/src/transform/cldr/cldr_serde/units/mod.rs | 2 +- provider/datagen/src/transform/cldr/units/helpers.rs | 2 +- provider/datagen/src/transform/cldr/units/info.rs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename provider/datagen/src/transform/cldr/cldr_serde/units/{units_constants.rs => info.rs} (100%) diff --git a/provider/datagen/src/transform/cldr/cldr_serde/units/units_constants.rs b/provider/datagen/src/transform/cldr/cldr_serde/units/info.rs similarity index 100% rename from provider/datagen/src/transform/cldr/cldr_serde/units/units_constants.rs rename to provider/datagen/src/transform/cldr/cldr_serde/units/info.rs diff --git a/provider/datagen/src/transform/cldr/cldr_serde/units/mod.rs b/provider/datagen/src/transform/cldr/cldr_serde/units/mod.rs index 46a13af64fb..05b9edbe823 100644 --- a/provider/datagen/src/transform/cldr/cldr_serde/units/mod.rs +++ b/provider/datagen/src/transform/cldr/cldr_serde/units/mod.rs @@ -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; diff --git a/provider/datagen/src/transform/cldr/units/helpers.rs b/provider/datagen/src/transform/cldr/units/helpers.rs index 67eee01fa56..a82d333df07 100644 --- a/provider/datagen/src/transform/cldr/units/helpers.rs +++ b/provider/datagen/src/transform/cldr/units/helpers.rs @@ -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: diff --git a/provider/datagen/src/transform/cldr/units/info.rs b/provider/datagen/src/transform/cldr/units/info.rs index 9c1074a4486..12814dffa9f 100644 --- a/provider/datagen/src/transform/cldr/units/info.rs +++ b/provider/datagen/src/transform/cldr/units/info.rs @@ -26,7 +26,7 @@ impl DataProvider for crate::DatagenProvider { self.check_req::(_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")?;