Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(fst-dict): remove unneeded mut in build script

Grant Lemonscaf8e40d7fb7
diff --git a/harper-core/build.rs b/harper-core/build.rs
index 87020e2af..951992814 100644
--- a/harper-core/build.rs
+++ b/harper-core/build.rs
@@ -21,7 +21,7 @@ pub fn parse_word_list(source: &str) -> Vec<String> {
}
fn main() {
- let mut wtr = io::BufWriter::new(File::create("dictionary.fst").unwrap());
+ let wtr = io::BufWriter::new(File::create("dictionary.fst").unwrap());
let mut build = MapBuilder::new(wtr).unwrap();
let mut word_list: Vec<String> = parse_word_list(include_str!("dictionary.dict"));