diff --git a/crates/pop-cli/src/commands/call/contract.rs b/crates/pop-cli/src/commands/call/contract.rs index f0e9ef82..49e4736c 100644 --- a/crates/pop-cli/src/commands/call/contract.rs +++ b/crates/pop-cli/src/commands/call/contract.rs @@ -74,7 +74,7 @@ impl CallContractCommand { .await?; if !self.execute { - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Calling the contract..."); let call_dry_run_result = dry_run_call(&call_exec).await?; log::info(format!("Result: {}", call_dry_run_result))?; @@ -89,7 +89,7 @@ impl CallContractCommand { weight_limit = Weight::from_parts(self.gas_limit.unwrap(), self.proof_size.unwrap()); } else { - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Doing a dry run to estimate the gas..."); weight_limit = match dry_run_gas_estimate_call(&call_exec).await { Ok(w) => { @@ -103,7 +103,7 @@ impl CallContractCommand { }, }; } - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Calling the contract..."); let call_result = call_smart_contract(call_exec, weight_limit, &self.url) diff --git a/crates/pop-cli/src/commands/new/contract.rs b/crates/pop-cli/src/commands/new/contract.rs index b86a7530..6dd488d4 100644 --- a/crates/pop-cli/src/commands/new/contract.rs +++ b/crates/pop-cli/src/commands/new/contract.rs @@ -47,7 +47,7 @@ impl NewContractCommand { fs::remove_dir_all(contract_path.as_path())?; } fs::create_dir_all(contract_path.as_path())?; - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Generating contract..."); create_smart_contract(&self.name, contract_path.as_path())?; spinner.stop("Smart contract created!"); diff --git a/crates/pop-cli/src/commands/new/pallet.rs b/crates/pop-cli/src/commands/new/pallet.rs index f729b5f9..30e739ea 100644 --- a/crates/pop-cli/src/commands/new/pallet.rs +++ b/crates/pop-cli/src/commands/new/pallet.rs @@ -45,7 +45,7 @@ impl NewPalletCommand { } fs::remove_dir_all(pallet_path)?; } - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Generating pallet..."); create_pallet_template( self.path.clone(), diff --git a/crates/pop-cli/src/commands/new/parachain.rs b/crates/pop-cli/src/commands/new/parachain.rs index 737b0808..4806107f 100644 --- a/crates/pop-cli/src/commands/new/parachain.rs +++ b/crates/pop-cli/src/commands/new/parachain.rs @@ -144,7 +144,7 @@ fn generate_parachain_from_template( ))?; let destination_path = check_destination_path(name_template)?; - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Generating parachain..."); let tag = instantiate_template_dir(template, destination_path, tag_version, config)?; if let Err(err) = Git::git_init(destination_path, "initialized parachain") { diff --git a/crates/pop-cli/src/commands/up/contract.rs b/crates/pop-cli/src/commands/up/contract.rs index a6a76a01..1c75cf9e 100644 --- a/crates/pop-cli/src/commands/up/contract.rs +++ b/crates/pop-cli/src/commands/up/contract.rs @@ -72,7 +72,7 @@ impl UpContractCommand { if self.gas_limit.is_some() && self.proof_size.is_some() { weight_limit = Weight::from_parts(self.gas_limit.unwrap(), self.proof_size.unwrap()); } else { - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Doing a dry run to estimate the gas..."); weight_limit = match dry_run_gas_estimate_instantiate(&instantiate_exec).await { Ok(w) => { @@ -86,7 +86,7 @@ impl UpContractCommand { }, }; } - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("Uploading and instantiating the contract..."); let contract_address = instantiate_smart_contract(instantiate_exec, weight_limit) .await diff --git a/crates/pop-cli/src/commands/up/parachain.rs b/crates/pop-cli/src/commands/up/parachain.rs index d2410cae..f81890c2 100644 --- a/crates/pop-cli/src/commands/up/parachain.rs +++ b/crates/pop-cli/src/commands/up/parachain.rs @@ -84,7 +84,7 @@ impl ZombienetCommand { } } // Finally spawn network and wait for signal to terminate - let mut spinner = cliclack::spinner(); + let spinner = cliclack::spinner(); spinner.start("🚀 Launching local network..."); //tracing_subscriber::fmt().init(); match zombienet.spawn().await {