@@ -389,14 +389,14 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
389
389
390
390
self . transform_static_assignment_expression (
391
391
expr,
392
- prop_binding,
393
- class_binding,
392
+ & prop_binding,
393
+ & class_binding,
394
394
class_symbol_id,
395
395
is_declaration,
396
396
ctx,
397
397
) ;
398
398
} else {
399
- self . transform_instance_assignment_expression ( expr, prop_binding, ctx) ;
399
+ self . transform_instance_assignment_expression ( expr, & prop_binding, ctx) ;
400
400
}
401
401
}
402
402
@@ -416,12 +416,11 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
416
416
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
417
417
// `transform_assignment_expression` can be elided.
418
418
#[ inline]
419
- #[ expect( clippy:: needless_pass_by_value) ]
420
419
fn transform_static_assignment_expression (
421
420
& self ,
422
421
expr : & mut Expression < ' a > ,
423
- prop_binding : BoundIdentifier < ' a > ,
424
- class_binding : BoundIdentifier < ' a > ,
422
+ prop_binding : & BoundIdentifier < ' a > ,
423
+ class_binding : & BoundIdentifier < ' a > ,
425
424
class_symbol_id : Option < SymbolId > ,
426
425
is_declaration : bool ,
427
426
ctx : & mut TraverseCtx < ' a > ,
@@ -575,11 +574,10 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
575
574
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
576
575
// `transform_assignment_expression` can be elided.
577
576
#[ inline]
578
- #[ expect( clippy:: needless_pass_by_value) ]
579
577
fn transform_instance_assignment_expression (
580
578
& self ,
581
579
expr : & mut Expression < ' a > ,
582
- prop_binding : BoundIdentifier < ' a > ,
580
+ prop_binding : & BoundIdentifier < ' a > ,
583
581
ctx : & mut TraverseCtx < ' a > ,
584
582
) {
585
583
let assign_expr = match ctx. ast . move_expression ( expr) {
0 commit comments