diff --git a/cmd/soroban-cli/src/commands/contract/invoke.rs b/cmd/soroban-cli/src/commands/contract/invoke.rs index 2915e8913f..d800a0326b 100644 --- a/cmd/soroban-cli/src/commands/contract/invoke.rs +++ b/cmd/soroban-cli/src/commands/contract/invoke.rs @@ -386,7 +386,7 @@ impl NetworkRunnable for Cmd { very_verbose, no_cache, .. - } = global_args.map(Clone::clone).unwrap_or_default(); + } = global_args.cloned().unwrap_or_default(); let res = client .send_assembled_transaction( txn, diff --git a/cmd/soroban-cli/src/get_spec.rs b/cmd/soroban-cli/src/get_spec.rs index c97295519e..3f40cb64b3 100644 --- a/cmd/soroban-cli/src/get_spec.rs +++ b/cmd/soroban-cli/src/get_spec.rs @@ -46,7 +46,7 @@ pub async fn get_remote_contract_spec( tracing::trace!(?network); let client = rpc::Client::new(&network.rpc_url)?; // Get contract data - let r = client.get_contract_data(&contract_id).await?; + let r = client.get_contract_data(contract_id).await?; tracing::trace!("{r:?}"); let ContractDataEntry { @@ -64,7 +64,7 @@ pub async fn get_remote_contract_spec( if let Ok(entries) = data::read_spec(&hash) { entries } else { - let res = client.get_remote_contract_spec(&contract_id).await?; + let res = client.get_remote_contract_spec(contract_id).await?; if global_args.map_or(true, |a| !a.no_cache) { data::write_spec(&hash, &res)?; }