diff --git a/crates/next-custom-transforms/src/transforms/server_actions.rs b/crates/next-custom-transforms/src/transforms/server_actions.rs index 90a3b4a59799f..9dc3601cc339b 100644 --- a/crates/next-custom-transforms/src/transforms/server_actions.rs +++ b/crates/next-custom-transforms/src/transforms/server_actions.rs @@ -479,7 +479,7 @@ impl ServerActions { body.stmts.retain(|stmt| { let found_directive = self.get_directive_for_stmt( - &stmt, + stmt, &mut directive, DirectiveLocation::FunctionBody, &mut is_allowed_position, @@ -504,7 +504,7 @@ impl ServerActions { stmts.retain(|item| { if let ModuleItem::Stmt(stmt) = item { let found_directive = self.get_directive_for_stmt( - &stmt, + stmt, &mut directive, DirectiveLocation::Module, &mut is_allowed_position,