From 2e9a5006a60ef7a9240291d4bd3c0d353706fe24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Fri, 10 Nov 2023 14:25:14 +0200 Subject: [PATCH] Fix clippy issues --- dex/farm-with-locked-rewards/src/lib.rs | 2 +- farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dex/farm-with-locked-rewards/src/lib.rs b/dex/farm-with-locked-rewards/src/lib.rs index 2a6b299a3..d4f5ec52b 100644 --- a/dex/farm-with-locked-rewards/src/lib.rs +++ b/dex/farm-with-locked-rewards/src/lib.rs @@ -169,7 +169,7 @@ pub trait Farm: let locked_rewards_payment = self.send_to_lock_contract_non_zero( rewards.token_identifier.clone(), - rewards.amount.clone(), + rewards.amount, caller, orig_caller.clone(), ); diff --git a/farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs b/farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs index 3c46ffd3e..f4388c9c0 100644 --- a/farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs +++ b/farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs @@ -47,7 +47,7 @@ pub trait ProxyUnstakeModule: ); let staking_farm_exit_result = self.staking_farm_unstake( - orig_caller.clone(), + orig_caller, remove_liq_result.staking_token_payment, exit_attributes.staking_farm_token_nonce, exit_attributes.staking_farm_token_amount,