Skip to content

Commit

Permalink
Fix plurals bench (#5474)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Sep 3, 2024
1 parent a894aaa commit 69b940c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/plurals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ std = ["fixed_decimal/std", "icu_locale_core/std", "icu_provider/std"]
serde = ["dep:serde", "zerovec/serde", "icu_locale_core/serde", "icu_provider/serde"]
datagen = ["serde", "zerovec/databake", "dep:databake"]
experimental = []
bench = ["serde"]
bench = ["serde", "datagen"]
compiled_data = ["dep:icu_plurals_data"]

[lib]
Expand Down
2 changes: 1 addition & 1 deletion components/plurals/benches/operands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn operands(c: &mut Criterion) {
}
}
c.bench_function("plurals/operands/eq/mostly_unequal", |b| {
let p: PluralOperands = "1".parse().expect("Parse successful");
let p: PluralOperands = 1.into();
b.iter(|| {
for s in &data.isize {
let q: PluralOperands = black_box(*s).into();
Expand Down

0 comments on commit 69b940c

Please sign in to comment.