Skip to content

Commit

Permalink
remove fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Apr 28, 2023
1 parent fd64c6f commit 2c960c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 3 additions & 8 deletions provider/datagen/src/transform/segmenter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,14 +773,9 @@ impl crate::DatagenProvider {

let toml_data: &SegmenterDictionaryData = self
.source
.icuexport()
.and_then(|e| e.read_and_parse_toml(filename))
.or_else(|e| {
self.source
.builtin()
.read_and_parse_toml(filename)
.map_err(|_| e)
})?;
.builtin()
.read_and_parse_toml(filename)
.expect("built-in file present and readable");

Ok(UCharDictionaryBreakDataV1 {
trie_data: ZeroVec::alloc_from_slice(&toml_data.trie_data),
Expand Down
1 change: 0 additions & 1 deletion tools/make/data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ args = [
"--locales=full",
"--format=dir",
"--syntax=postcard",
"--icuexport-root=provider/repodata/data/icuexport",
"--out=components/segmenter/tests/testdata/provider",
"--overwrite",
]
Expand Down

0 comments on commit 2c960c5

Please sign in to comment.