From 232bb932e8d1af2bb53be3e8b0ac893f3dc0499d Mon Sep 17 00:00:00 2001 From: FroVolod Date: Tue, 26 Sep 2023 16:44:54 +0300 Subject: [PATCH] clippy --- src/commands/contract/call_function/as_transaction/mod.rs | 2 +- .../contract/deploy/initialize_mode/call_function_type/mod.rs | 2 +- src/commands/tokens/send_ft/mod.rs | 2 +- src/commands/tokens/send_nft/mod.rs | 2 +- .../add_action_1/add_action/call_function/mod.rs | 2 +- .../add_action_2/add_action/call_function/mod.rs | 2 +- .../add_action_3/add_action/call_function/mod.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/contract/call_function/as_transaction/mod.rs b/src/commands/contract/call_function/as_transaction/mod.rs index 094d8d035..5a9e6db50 100644 --- a/src/commands/contract/call_function/as_transaction/mod.rs +++ b/src/commands/contract/call_function/as_transaction/mod.rs @@ -96,7 +96,7 @@ impl PrepaidGasContext { receiver_account_id: previous_context.receiver_account_id, function_name: previous_context.function_name, function_args: previous_context.function_args, - gas: scope.gas.clone(), + gas: scope.gas, }) } } diff --git a/src/commands/contract/deploy/initialize_mode/call_function_type/mod.rs b/src/commands/contract/deploy/initialize_mode/call_function_type/mod.rs index 9722e371a..494bf6fdc 100644 --- a/src/commands/contract/deploy/initialize_mode/call_function_type/mod.rs +++ b/src/commands/contract/deploy/initialize_mode/call_function_type/mod.rs @@ -96,7 +96,7 @@ impl PrepaidGasContext { code: previous_context.code, function_name: previous_context.function_name, function_args: previous_context.function_args, - gas: scope.gas.clone(), + gas: scope.gas, }) } } diff --git a/src/commands/tokens/send_ft/mod.rs b/src/commands/tokens/send_ft/mod.rs index d28aca196..10724e31b 100644 --- a/src/commands/tokens/send_ft/mod.rs +++ b/src/commands/tokens/send_ft/mod.rs @@ -50,7 +50,7 @@ impl SendFtCommandContext { ft_contract_account_id: scope.ft_contract_account_id.clone().into(), receiver_account_id: scope.receiver_account_id.clone().into(), amount: scope.amount, - gas: scope.gas.clone(), + gas: scope.gas, deposit: scope.deposit.clone(), }) } diff --git a/src/commands/tokens/send_nft/mod.rs b/src/commands/tokens/send_nft/mod.rs index 649359cfa..c53c85823 100644 --- a/src/commands/tokens/send_nft/mod.rs +++ b/src/commands/tokens/send_nft/mod.rs @@ -50,7 +50,7 @@ impl SendNftCommandContext { nft_contract_account_id: scope.nft_contract_account_id.clone().into(), receiver_account_id: scope.receiver_account_id.clone().into(), token_id: scope.token_id.clone(), - gas: scope.gas.clone(), + gas: scope.gas, deposit: scope.deposit.clone(), }) } diff --git a/src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs b/src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs index b82316552..ba5552f55 100644 --- a/src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs +++ b/src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs @@ -97,7 +97,7 @@ impl PrepaidGasContext { actions: previous_context.actions, function_name: previous_context.function_name, function_args: previous_context.function_args, - gas: scope.gas.clone(), + gas: scope.gas, }) } } diff --git a/src/commands/transaction/construct_transaction/add_action_2/add_action/call_function/mod.rs b/src/commands/transaction/construct_transaction/add_action_2/add_action/call_function/mod.rs index db1ffac52..43aa368bd 100644 --- a/src/commands/transaction/construct_transaction/add_action_2/add_action/call_function/mod.rs +++ b/src/commands/transaction/construct_transaction/add_action_2/add_action/call_function/mod.rs @@ -97,7 +97,7 @@ impl PrepaidGasContext { actions: previous_context.actions, function_name: previous_context.function_name, function_args: previous_context.function_args, - gas: scope.gas.clone(), + gas: scope.gas, }) } } diff --git a/src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs b/src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs index 14680e676..cf4fce49c 100644 --- a/src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs +++ b/src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs @@ -97,7 +97,7 @@ impl PrepaidGasContext { actions: previous_context.actions, function_name: previous_context.function_name, function_args: previous_context.function_args, - gas: scope.gas.clone(), + gas: scope.gas, }) } }