mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(lexer): rename function param (#8288)
Pure refactor. Rename unused function param. This results in better param name hint in IDE.
This commit is contained in:
parent
d8b27afc35
commit
0462edbe7e
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue