Skip to content

Commit

Permalink
fix(plugin): setup frontend plugin with mut reference (#2711)
Browse files Browse the repository at this point in the history
chore: plugin setup with mut reference
  • Loading branch information
yuanbohan authored Nov 8, 2023
1 parent 69ee2c3 commit 9697632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ impl StartCommand {
#[allow(unused_variables)]
#[allow(clippy::diverging_sub_expression)]
async fn build(self, opts: MixOptions) -> Result<Instance> {
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)?;

Expand Down

0 comments on commit 9697632

Please sign in to comment.