Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: missing `LintKind`s from `LintKind::new_from_str` (#1850)
Andrew Dunbarcfc89b3ecc3f
diff --git a/harper-core/src/linting/lint_kind.rs b/harper-core/src/linting/lint_kind.rsindex eba99da04..de6df9d7f 100644--- a/harper-core/src/linting/lint_kind.rs+++ b/harper-core/src/linting/lint_kind.rs@@ -55,28 +55,6 @@ pub enum LintKind {}impl LintKind {- pub fn new_from_str(s: &str) -> Option<Self> {- Some(match s {- "Agreement" => LintKind::Agreement,- "BoundaryError" => LintKind::BoundaryError,- "Capitalization" => LintKind::Capitalization,- "Eggcorn" => LintKind::Eggcorn,- "Enhancement" => LintKind::Enhancement,- "Formatting" => LintKind::Formatting,- "Grammar" => LintKind::Grammar,- "Miscellaneous" => LintKind::Miscellaneous,- "Readability" => LintKind::Readability,- "Redundancy" => LintKind::Redundancy,- "Regionalism" => LintKind::Regionalism,- "Repetition" => LintKind::Repetition,- "Spelling" => LintKind::Spelling,- "Style" => LintKind::Style,- "Typo" => LintKind::Typo,- "Word Choice" => LintKind::WordChoice,- _ => return None,- })- }-/// Produce a string representation, which can be used as keys in a map or CSS variables.pub fn to_string_key(&self) -> String {match self {