Skip to content

Commit

Permalink
address build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
blaynem committed Jul 19, 2024
1 parent 4815066 commit 2140db4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/experimental/src/dimension/percent/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions components/experimental/src/dimension/provider/percent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// <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.
Expand Down
4 changes: 2 additions & 2 deletions provider/source/src/percent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 2140db4

Please sign in to comment.