Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: all to/too linters now use same `LintKind` (#3135)
Andrew Dunbara06cbb14bd66
diff --git a/harper-core/src/linting/to_two_too/to_too_eos.rs b/harper-core/src/linting/to_two_too/to_too_eos.rsindex 826a9c108..8cea6d196 100644--- a/harper-core/src/linting/to_two_too/to_too_eos.rs+++ b/harper-core/src/linting/to_two_too/to_too_eos.rs@@ -38,7 +38,7 @@ impl Linter for ToTooEos {Lint {span: tok.span,- lint_kind: LintKind::Typo,+ lint_kind: LintKind::WordChoice,suggestions: vec![Suggestion::replace_with_match_case_str("too",tok.get_ch(document.get_source()),diff --git a/harper-core/src/linting/to_two_too/too_to.rs b/harper-core/src/linting/to_two_too/too_to.rsindex 54c106fa5..12b361dc9 100644--- a/harper-core/src/linting/to_two_too/too_to.rs+++ b/harper-core/src/linting/to_two_too/too_to.rs@@ -48,7 +48,7 @@ impl ExprLinter for TooTo {Some(Lint {span,- lint_kind: LintKind::Typo,+ lint_kind: LintKind::WordChoice,suggestions: vec![Suggestion::replace_with_match_case("to".chars().collect(), text)],