From ee16668168a11b447162d6d7eb7de8823de892a5 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:06:59 +0000 Subject: [PATCH] refactor(semantic): rename function param (#4277) Small style nit. It's nicer to have Rust Analyser's param name hint show `builder` rather than `_builder`. --- crates/oxc_semantic/src/binder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/oxc_semantic/src/binder.rs b/crates/oxc_semantic/src/binder.rs index fcd661500f680..28612911cff41 100644 --- a/crates/oxc_semantic/src/binder.rs +++ b/crates/oxc_semantic/src/binder.rs @@ -13,7 +13,8 @@ use oxc_span::SourceType; use crate::{scope::ScopeFlags, symbol::SymbolFlags, SemanticBuilder}; pub trait Binder { - fn bind(&self, _builder: &mut SemanticBuilder) {} + #[allow(unused_variables)] + fn bind(&self, builder: &mut SemanticBuilder) {} } impl<'a> Binder for VariableDeclarator<'a> {