From 0462edbe7e297cbddac6a730b541f26890be85b4 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:33:09 +0000 Subject: [PATCH] refactor(lexer): rename function param (#8288) Pure refactor. Rename unused function param. This results in better param name hint in IDE. --- crates/oxc_parser/src/lexer/source.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_parser/src/lexer/source.rs b/crates/oxc_parser/src/lexer/source.rs index de240b4e2..5d53e436c 100644 --- a/crates/oxc_parser/src/lexer/source.rs +++ b/crates/oxc_parser/src/lexer/source.rs @@ -80,8 +80,8 @@ impl<'a> Source<'a> { /// /// Requiring a `UniquePromise` to be provided guarantees only 1 `Source` can exist /// on a single thread at one time. - #[allow(clippy::needless_pass_by_value)] - pub(super) fn new(mut source_text: &'a str, _unique: UniquePromise) -> Self { + #[allow(unused_variables, clippy::needless_pass_by_value)] + pub(super) fn new(mut source_text: &'a str, unique: UniquePromise) -> Self { // If source text exceeds size limit, substitute a short source text which will fail to parse. // `Parser::parse` will convert error to `diagnostics::overlong_source()`. if source_text.len() > MAX_LEN {