Skip to content

Commit

Permalink
refactor(lexer): rename function param (#8288)
Browse files Browse the repository at this point in the history
Pure refactor. Rename unused function param. This results in better param name hint in IDE.
  • Loading branch information
overlookmotel committed Jan 6, 2025
1 parent d8b27af commit 0462edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_parser/src/lexer/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0462edb

Please sign in to comment.