Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: format
hippietrailbf7c2cd9ee44
diff --git a/harper-core/src/linting/comma_fixes.rs b/harper-core/src/linting/comma_fixes.rsindex 51c85be4b..095f5f703 100644--- a/harper-core/src/linting/comma_fixes.rs+++ b/harper-core/src/linting/comma_fixes.rs@@ -123,8 +123,20 @@ impl Linter for CommaFixes {// to prevent changing commas within CJK text(None | Some(_), None | Some(_), _, None | Some(_), None | Some(_))if comma_kind != ','- && !matches!(toks.1, Some(Token { kind: TokenKind::Unlintable, .. }))- && !matches!(toks.3, Some(Token { kind: TokenKind::Unlintable, .. })) =>+ && !matches!(+ toks.1,+ Some(Token {+ kind: TokenKind::Unlintable,+ ..+ })+ )+ && !matches!(+ toks.3,+ Some(Token {+ kind: TokenKind::Unlintable,+ ..+ })+ ) =>{span = toks.2.span;suggestion = Suggestion::ReplaceWith(vec![',']);