Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(fst-dict): use todo for unfinished bits of fst_dictionary.rs
Grant Lemonsd391b04879fd
diff --git a/harper-core/src/spell/fst_dictionary.rs b/harper-core/src/spell/fst_dictionary.rsindex f739d9073..2e91132c8 100644--- a/harper-core/src/spell/fst_dictionary.rs+++ b/harper-core/src/spell/fst_dictionary.rs@@ -29,9 +29,10 @@ fn uncached_inner_new() -> Lrc<FstDictionary> {let mmap = unsafe { Mmap::map(&File::open("../../dictionary.fst").unwrap()).unwrap() };let word_map = FstMap::new(mmap).unwrap();- let mut words: Vec<CharString> = word_list.iter().map(|mw| mw.letters).collect();+ let mut words: Vec<CharString> = word_list.iter().map(|mw| mw.letters.clone()).collect();words.sort();words.dedup();+ let metadata: Vec<WordMetadata> = todo!();Lrc::new(FstDictionary { metadata, word_map })}