Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jan 4, 2024
1 parent 7b6bf54 commit 073daa2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions provider/datagen/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
16 changes: 8 additions & 8 deletions tools/bakeddata-scripts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 073daa2

Please sign in to comment.