mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
refactor(transformer/class-properties): methods take &self where possible (#7967)
These 2 methods don't need to take `&mut self`.
This commit is contained in:
parent
41a14564ec
commit
69eeeea138
1 changed files with 2 additions and 2 deletions
|
|
@ -418,7 +418,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
|
|||
#[inline]
|
||||
#[expect(clippy::needless_pass_by_value)]
|
||||
fn transform_static_assignment_expression(
|
||||
&mut self,
|
||||
&self,
|
||||
expr: &mut Expression<'a>,
|
||||
prop_binding: BoundIdentifier<'a>,
|
||||
class_binding: BoundIdentifier<'a>,
|
||||
|
|
@ -577,7 +577,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
|
|||
#[inline]
|
||||
#[expect(clippy::needless_pass_by_value)]
|
||||
fn transform_instance_assignment_expression(
|
||||
&mut self,
|
||||
&self,
|
||||
expr: &mut Expression<'a>,
|
||||
prop_binding: BoundIdentifier<'a>,
|
||||
ctx: &mut TraverseCtx<'a>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue