Skip to content

Commit

Permalink
refactor(semantic): rename function param (#4277)
Browse files Browse the repository at this point in the history
Small style nit. It's nicer to have Rust Analyser's param name hint show `builder` rather than `_builder`.
  • Loading branch information
overlookmotel committed Jul 15, 2024
1 parent 25f0771 commit ee16668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/oxc_semantic/src/binder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit ee16668

Please sign in to comment.