Skip to content

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

fix: elide lifetimes in feature flagged trait

Grant Lemons3112a3e0fe60
diff --git a/harper-core/src/linting/pattern_linter.rs b/harper-core/src/linting/pattern_linter.rs
index 4fed20727..c4e0052d0 100644
--- a/harper-core/src/linting/pattern_linter.rs
+++ b/harper-core/src/linting/pattern_linter.rs
@@ -7,7 +7,7 @@ pub trait PatternLinter {
/// A simple getter for the pattern to be searched for.
fn pattern(&self) -> &dyn Pattern;
fn match_to_lint(&self, matched_tokens: &[Token], source: &[char]) -> Lint;
- fn description<'a>(&'a self) -> &'a str;
+ fn description(&self) -> &str;
}
#[cfg(feature = "concurrent")]