From 96976328882701fb0f24b6f65165a6d534e8ab58 Mon Sep 17 00:00:00 2001 From: yuanbohan Date: Wed, 8 Nov 2023 23:17:47 +0800 Subject: [PATCH] fix(plugin): setup frontend plugin with mut reference (#2711) chore: plugin setup with mut reference --- src/cmd/src/standalone.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/src/standalone.rs b/src/cmd/src/standalone.rs index ac4ced397e..c7adfd0834 100644 --- a/src/cmd/src/standalone.rs +++ b/src/cmd/src/standalone.rs @@ -316,9 +316,9 @@ impl StartCommand { #[allow(unused_variables)] #[allow(clippy::diverging_sub_expression)] async fn build(self, opts: MixOptions) -> Result { + let mut fe_opts = opts.frontend.clone(); #[allow(clippy::unnecessary_mut_passed)] - let fe_opts = opts.frontend.clone(); - let fe_plugins = plugins::setup_frontend_plugins(&fe_opts) + let fe_plugins = plugins::setup_frontend_plugins(&mut fe_opts) // mut ref is MUST, DO NOT change it .await .context(StartFrontendSnafu)?;