From 073daa20ecda518387d21fd9f8ac719634b9d776 Mon Sep 17 00:00:00 2001 From: Robert Bastian <4706271+robertbastian@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:34:33 +0100 Subject: [PATCH] fix --- provider/datagen/src/driver.rs | 2 ++ tools/bakeddata-scripts/src/main.rs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/provider/datagen/src/driver.rs b/provider/datagen/src/driver.rs index 12496474b37..3ca637abc38 100644 --- a/provider/datagen/src/driver.rs +++ b/provider/datagen/src/driver.rs @@ -438,6 +438,8 @@ impl DatagenDriver { let transform_duration = instant1.elapsed(); + // segmenter uses hardcoded locales internally, so fallback is not necessary. + // TODO(#4511): Use auxiliary keys for segmenter fallback if fallback == FallbackMode::Runtime && !key.path().get().starts_with("segmenter") { sink.flush_with_built_in_fallback(key, BuiltInFallbackMode::Standard) } else { diff --git a/tools/bakeddata-scripts/src/main.rs b/tools/bakeddata-scripts/src/main.rs index a05da449190..b9c1c87cbb7 100644 --- a/tools/bakeddata-scripts/src/main.rs +++ b/tools/bakeddata-scripts/src/main.rs @@ -130,15 +130,15 @@ fn main() { ) .unwrap(); } - + driver - .clone() - .with_keys(keys.iter().copied()) - .export( - &source, - BakedExporter::new(path.join("data"), options).unwrap(), - ) - .unwrap(); + .clone() + .with_keys(keys.iter().copied()) + .export( + &source, + BakedExporter::new(path.join("data"), options).unwrap(), + ) + .unwrap(); for file in ["data/any.rs", "data/mod.rs"] { std::fs::remove_file(path.join(file)).unwrap();