From 1046b892089884c5f8c26a6a34a8a2a7dff82664 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 23 Oct 2021 08:58:13 -0500 Subject: [PATCH] fix(config): Avoid correcting Rust names Part of #362 --- Cargo.toml | 2 +- src/config.rs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 47422a9..3e266fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,13 +87,13 @@ serde_json = "1.0" encoding = "0.2" kstring = "1.0" typed-arena = "2.0.1" +maplit = "1.0" [dev-dependencies] assert_fs = "1.0" assert_cmd = "2.0" predicates = "2.0" criterion = "0.3" -maplit = "1.0" [profile.dev] panic = "abort" diff --git a/src/config.rs b/src/config.rs index 6fcf1e7..ae099da 100644 --- a/src/config.rs +++ b/src/config.rs @@ -182,6 +182,13 @@ impl TypeEngineConfig { // From a spell-check perspective, these are more closely related to Rust than Toml extend_glob: vec!["Cargo.toml".into()], engine: EngineConfig { + dict: Some(DictConfig { + extend_words: maplit::hashmap! { + "flate".into() => "flate".into(), + "ser".into() => "ser".into(), + }, + ..Default::default() + }), ..Default::default() }, });