Skip to content

Commit

Permalink
refactor: address warnings after dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Apr 28, 2024
1 parent 6c3b313 commit c16d54c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions crates/pop-cli/src/commands/call/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;
Expand All @@ -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) => {
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-cli/src/commands/new/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-cli/src/commands/new/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-cli/src/commands/new/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl NewParachainCommand {
}
fs::remove_dir_all(destination_path.as_path())?;
}
let mut spinner = cliclack::spinner();
let spinner = cliclack::spinner();
spinner.start("Generating parachain...");
let tag = instantiate_template_dir(
&self.template.into_parachain_template(),
Expand Down
4 changes: 2 additions & 2 deletions crates/pop-cli/src/commands/up/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-cli/src/commands/up/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c16d54c

Please sign in to comment.