From 98e8a72badc6e41b00faab8b696ffde2bfd725aa Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sat, 21 Dec 2024 07:21:30 +0000 Subject: [PATCH] refactor(transformer/class-properties): do not take mut ref when immut ref will do (#8040) Tiny refactor. Not need to take a `&mut` when a `&` will do. --- crates/oxc_transformer/src/es2022/class_properties/class.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_transformer/src/es2022/class_properties/class.rs b/crates/oxc_transformer/src/es2022/class_properties/class.rs index 64baf77bb..7b418a7af 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/class.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/class.rs @@ -310,7 +310,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { } // Leave class expressions to `transform_class_expression_on_exit` - let class_details = self.current_class_mut(); + let class_details = self.current_class(); if !class_details.is_declaration { return; }