Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron authored and willemneal committed May 22, 2024
1 parent 7a02eb8 commit 7051f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/invoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/get_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)?;
}
Expand Down

0 comments on commit 7051f3b

Please sign in to comment.