Skip to content

Commit 8038e36

Browse files
committed
build: move mini.dat to chewing crate
1 parent 94df7a8 commit 8038e36

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2024"
1010
include = [
1111
"src/**/*.rs",
1212
"src/**/*.asn1",
13-
"data/*",
13+
"src/editor/data/*",
1414
"Cargo.toml",
1515
"AUTHORS",
1616
"COPYING",

src/editor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Editor {
203203
let system_dicts = match sys_loader.load(enabled_dicts) {
204204
Ok(d) => d,
205205
Err(e) => {
206-
let builtin = Trie::new(&include_bytes!("../../capi/data/mini.dat")[..]);
206+
let builtin = Trie::new(&include_bytes!("data/mini.dat")[..]);
207207
error!("Failed to load system dict: {e}");
208208
error!("Loading builtin minimum dictionary...");
209209
// NB: we can unwrap because the built-in dictionary should always

0 commit comments

Comments
 (0)