mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 18:43:44 +00:00
style(syntax): name trait method param without underscore (#9119)
Follow-on after #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.
This commit is contained in:
1 parent
b164072229
commit
23f53c0ba1
1 file changed
+3
-1
@@ -465,7 +465,9 @@ pub trait VisitMutModuleRecord {
|
||||
self.visit_span(&mut name_span.span);
|
||||
}
|
||||
|
||||
fn visit_span(&mut self, _span: &mut Span) {}
|
||||
#[expect(unused_variables)]
|
||||
#[inline(always)]
|
||||
fn visit_span(&mut self, span: &mut Span) {}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in new issue
Block a user