Skip to content

Commit

Permalink
fix: cargo clipped
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Aug 31, 2023
1 parent c7a4564 commit 79c6a4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/contract/download_wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl DownloadContractContext {
.blocking_call(near_jsonrpc_client::methods::query::RpcQueryRequest {
block_reference: block_reference.clone(),
request: near_primitives::views::QueryRequest::ViewCode {
account_id: account_id.clone().into(),
account_id: account_id.clone(),
},
})
.wrap_err_with(|| format!("Failed to fetch query ViewCode for <{}>", &account_id))?;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/tokens/send_ft/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ impl From<SendFtCommandContext> for crate::commands::ActionContext {

move |_network_config| {
Ok(crate::commands::PrepopulatedTransaction {
signer_id: signer_account_id.clone().into(),
receiver_id: ft_contract_account_id.clone().into(),
signer_id: signer_account_id.clone(),
receiver_id: ft_contract_account_id.clone(),
actions: vec![near_primitives::transaction::Action::FunctionCall(
near_primitives::transaction::FunctionCallAction {
method_name: "ft_transfer".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/transaction/sign_transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ impl SignTransactionContext {
Ok(Self(crate::commands::ActionContext {
global_context: previous_context,
interacting_with_account_ids: vec![
scope.unsigned_transaction.inner.signer_id.clone().into(),
scope.unsigned_transaction.inner.receiver_id.clone().into(),
scope.unsigned_transaction.inner.signer_id.clone(),
scope.unsigned_transaction.inner.receiver_id.clone(),
],
on_after_getting_network_callback,
on_before_signing_callback: std::sync::Arc::new(
Expand Down
2 changes: 1 addition & 1 deletion src/commands/transaction/view_status/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl TransactionInfoContext {
let on_after_getting_network_callback: crate::network::OnAfterGettingNetworkCallback =
std::sync::Arc::new({
let signer_account_id = scope.signer_account_id.clone();
let transaction_hash = scope.transaction_hash.clone();
let transaction_hash = scope.transaction_hash;

move |network_config| {
let query_view_transaction_status = network_config
Expand Down

0 comments on commit 79c6a4f

Please sign in to comment.