Skip to content

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

fix: remove explicit static lifetimes of consts

hippietrail6ac4569e7fe3
diff --git a/harper-core/src/linting/comma_fixes.rs b/harper-core/src/linting/comma_fixes.rs
index 519ff7591..ad301813a 100644
--- a/harper-core/src/linting/comma_fixes.rs
+++ b/harper-core/src/linting/comma_fixes.rs
@@ -1,9 +1,9 @@
use super::{Lint, LintKind, Linter, Suggestion};
use crate::{Span, TokenKind, TokenStringExt};
-const MSG_SPACE_BEFORE: &'static str = "Don't use a space before a comma.";
-const MSG_AVOID_ASIAN: &'static str = "Avoid East Asian commas in English contexts.";
-const MSG_SPACE_AFTER: &'static str = "Use a space after a comma.";
+const MSG_SPACE_BEFORE: &str = "Don't use a space before a comma.";
+const MSG_AVOID_ASIAN: &str = "Avoid East Asian commas in English contexts.";
+const MSG_SPACE_AFTER: &str = "Use a space after a comma.";
/// A linter that fixes common comma errors:
/// No space after.