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_document.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_utils/mdx_plugin_recma_document.rs') diff --git a/tests/test_utils/mdx_plugin_recma_document.rs b/tests/test_utils/mdx_plugin_recma_document.rs index a62862c..5c0d423 100644 --- a/tests/test_utils/mdx_plugin_recma_document.rs +++ b/tests/test_utils/mdx_plugin_recma_document.rs @@ -72,10 +72,10 @@ impl Default for Options { #[allow(dead_code)] pub fn mdx_plugin_recma_document( - mut program: Program, + program: &mut Program, options: &Options, location: Option<&Location>, -) -> Result { +) -> Result<(), String> { // New body children. let mut replacements = vec![]; @@ -412,7 +412,7 @@ pub fn mdx_plugin_recma_document( program.module.body = replacements; - Ok(program) + Ok(()) } /// Create a content component. -- cgit