Skip to content

Commit e0396fd

Browse files
committed
refactor(linter): remove static lifetime from disable directives function argument (#13492)
1 parent 087bd43 commit e0396fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/disable_directives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'a> DisableDirectives<'a> {
125125
self.used_disable_comments.borrow_mut().push(disable_directive);
126126
}
127127

128-
pub fn contains(&self, rule_name: &'static str, span: Span) -> bool {
128+
pub fn contains(&self, rule_name: &str, span: Span) -> bool {
129129
// For `eslint-disable-next-line` and `eslint-disable-line` directives, we only check
130130
// if the diagnostic's starting position falls within the disabled interval.
131131
// This prevents suppressing diagnostics for larger constructs (like functions) that

0 commit comments

Comments
 (0)