From 04e20a76e8022e3c1157314f598b765e9e073dcc Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 11 Oct 2022 16:33:15 +0200 Subject: Refactor some internals to accept mutable references --- tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs') diff --git a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs index 6a4d451..89e0ebd 100644 --- a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs +++ b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs @@ -31,10 +31,10 @@ pub struct Options { /// Rewrite JSX in an MDX file so that components can be passed in and provided. #[allow(dead_code)] pub fn mdx_plugin_recma_jsx_rewrite( - mut program: Program, + program: &mut Program, options: &Options, location: Option<&Location>, -) -> Program { +) { let mut state = State { scopes: vec![], location, @@ -65,8 +65,6 @@ pub fn mdx_plugin_recma_jsx_rewrite( .body .push(create_error_helper(state.development, state.path)); } - - program } /// Collection of different SWC functions. -- cgit