diff --git a/components/experimental/src/dimension/percent/format.rs b/components/experimental/src/dimension/percent/format.rs index f7e18f63155..448681a7f83 100644 --- a/components/experimental/src/dimension/percent/format.rs +++ b/components/experimental/src/dimension/percent/format.rs @@ -83,7 +83,7 @@ mod tests { options: PercentFormatterOptions, value: FixedDecimal, ) -> String { - let default_fmt = PercentFormatter::try_new(&locale, options).unwrap(); + let default_fmt = PercentFormatter::try_new(locale, options).unwrap(); let formatted_percent = default_fmt.format_percent(&value); let mut sink = String::new(); formatted_percent.write_to(&mut sink).unwrap(); diff --git a/components/experimental/src/dimension/provider/percent.rs b/components/experimental/src/dimension/provider/percent.rs index 4235ab2ca3a..5748fa2aba0 100644 --- a/components/experimental/src/dimension/provider/percent.rs +++ b/components/experimental/src/dimension/provider/percent.rs @@ -34,8 +34,8 @@ pub use crate::provider::Baked; /// A struct including the essentials to create a Percent. /// /// If an `approximate` or `explicit plus` are required, use the negative pattern as explained below: -/// https://www.unicode.org/reports/tr35/tr35-numbers.html#approximate-number-formatting -/// https://www.unicode.org/reports/tr35/tr35-numbers.html#explicit-plus-signs +/// +/// pub struct PercentEssentialsV1<'data> { #[cfg_attr(feature = "serde", serde(borrow))] /// Represents the standard pattern for negative percents. diff --git a/provider/source/src/percent/mod.rs b/provider/source/src/percent/mod.rs index cece1abf35c..304ebcbc401 100644 --- a/provider/source/src/percent/mod.rs +++ b/provider/source/src/percent/mod.rs @@ -345,13 +345,13 @@ fn blo_test() { use writeable::assert_writeable_eq; let blo_positive_pattern = "% #,#0"; - let pattern = create_positive_pattern(&blo_positive_pattern, "%").unwrap(); + let pattern = create_positive_pattern(&blo_positive_pattern, '%').unwrap(); assert_writeable_eq!(pattern.interpolate(["123"]), "% 123"); assert_eq!(pattern.take_store().into_owned(), "\u{4}%\u{a0}"); let blo_negative_pattern = "% -#,#0"; - let pattern = create_negative_pattern(&blo_negative_pattern, "%").unwrap(); + let pattern = create_negative_pattern(&blo_negative_pattern, '%').unwrap(); assert_writeable_eq!(pattern.interpolate(["123", "+"]), "% +123"); assert_writeable_eq!(pattern.interpolate(["123", "-"]), "% -123");