Skip to content

Commit 23f53c0

Browse files
committed
style(syntax): name trait method param without underscore (oxc-project#9119)
Follow-on after oxc-project#9093. Style nit. Name unused param of `VisitMutModuleRecord::visit_span` without an underscore. This makes no difference to code's behavior, but produces nicer naming hints in IDE. Also `#[inline(always)]` the method, as it's a no-op.
1 parent b164072 commit 23f53c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/oxc_syntax/src/module_record.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ pub trait VisitMutModuleRecord {
465465
self.visit_span(&mut name_span.span);
466466
}
467467

468-
fn visit_span(&mut self, _span: &mut Span) {}
468+
#[expect(unused_variables)]
469+
#[inline(always)]
470+
fn visit_span(&mut self, span: &mut Span) {}
469471
}
470472

471473
#[cfg(test)]

0 commit comments

Comments
 (0)