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:
overlookmotel committed 2025-02-14 12:53:26 +00:00
1 parent b164072229
commit 23f53c0ba1
1 file changed
+3 -1
+3 -1
View File
@@ -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)]