From e0396fdacd860046938a2466f4739219ee070316 Mon Sep 17 00:00:00 2001 From: camc314 <18101008+camc314@users.noreply.github.com> Date: Sun, 31 Aug 2025 18:43:15 +0000 Subject: [PATCH] refactor(linter): remove `static` lifetime from disable directives function argument (#13492) --- crates/oxc_linter/src/disable_directives.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_linter/src/disable_directives.rs b/crates/oxc_linter/src/disable_directives.rs index 1600d3f00469a..edc81e92a27c0 100644 --- a/crates/oxc_linter/src/disable_directives.rs +++ b/crates/oxc_linter/src/disable_directives.rs @@ -125,7 +125,7 @@ impl<'a> DisableDirectives<'a> { self.used_disable_comments.borrow_mut().push(disable_directive); } - pub fn contains(&self, rule_name: &'static str, span: Span) -> bool { + pub fn contains(&self, rule_name: &str, span: Span) -> bool { // For `eslint-disable-next-line` and `eslint-disable-line` directives, we only check // if the diagnostic's starting position falls within the disabled interval. // This prevents suppressing diagnostics for larger constructs (like functions) that