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:
overlookmotel 2024-12-17 15:59:09 +00:00
parent 41a14564ec
commit 69eeeea138

View file

@ -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>,