Skip to content

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

fix: removed unneeded `dbg!()` and added `clippy` lint for it

Elijah Potterccf14d1535c2
diff --git a/harper-core/src/spell/hunspell/attribute_list.rs b/harper-core/src/spell/hunspell/attribute_list.rs
index 462041bda..54f490099 100644
--- a/harper-core/src/spell/hunspell/attribute_list.rs
+++ b/harper-core/src/spell/hunspell/attribute_list.rs
@@ -1,6 +1,6 @@
use hashbrown::HashMap;
use serde::{Deserialize, Serialize};
-use smallvec::{smallvec, ToSmallVec};
+use smallvec::ToSmallVec;
use super::affix_replacement::AffixReplacement;
use super::expansion::{Expansion, HumanReadableExpansion};
@@ -70,10 +70,6 @@ impl AttributeList {
}
}
- if new_words.get(&smallvec!['h', 'a', 's']).is_some() {
- dbg!(&word);
- }
-
for (new_word, metadata) in new_words {
self.expand_marked_word(
MarkedWord {
diff --git a/justfile b/justfile
index a12da43fb..347496dfa 100644
--- a/justfile
+++ b/justfile
@@ -55,7 +55,7 @@ check:
set -eo pipefail
cargo +nightly fmt --check
- cargo clippy -- -Dwarnings
+ cargo clippy -- -Dwarnings -D clippy::dbg_macro
cd "{{justfile_directory()}}/packages"
yarn install