diff --git a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/feature_toggle.rs b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/feature_toggle.rs index 674cc9c7..ecaef474 100644 --- a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/feature_toggle.rs +++ b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/feature_toggle.rs @@ -194,13 +194,7 @@ fn test_feature_toggle_withdrawals_disabled() { }), amp_factor: None, }; - execute( - deps.as_mut(), - env.clone(), - info.clone(), - update_config_message, - ) - .unwrap(); + execute(deps.as_mut(), env, info, update_config_message).unwrap(); // withdraw liquidity should fail let msg = ExecuteMsg::Receive(Cw20ReceiveMsg { @@ -281,13 +275,7 @@ fn test_feature_toggle_deposits_disabled() { }), amp_factor: None, }; - execute( - deps.as_mut(), - env.clone(), - info.clone(), - update_config_message, - ) - .unwrap(); + execute(deps.as_mut(), env, info, update_config_message).unwrap(); // provide liquidity should fail let msg = ExecuteMsg::ProvideLiquidity { diff --git a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/protocol_fees.rs b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/protocol_fees.rs index 2454e2c7..13f24329 100644 --- a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/protocol_fees.rs +++ b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/protocol_fees.rs @@ -418,7 +418,7 @@ fn test_collect_protocol_fees_successful() { to_address: "collector".to_string(), amount: vec![Coin { denom: "uusd".to_string(), - amount: protocol_fees_for_native.clone().first().unwrap().amount, + amount: protocol_fees_for_native.first().unwrap().amount, }], })) ); @@ -428,7 +428,7 @@ fn test_collect_protocol_fees_successful() { contract_addr: "asset0000".to_string(), msg: to_json_binary(&Cw20ExecuteMsg::Transfer { recipient: "collector".to_string(), - amount: protocol_fees_for_asset0000.clone().first().unwrap().amount, + amount: protocol_fees_for_asset0000.first().unwrap().amount, }) .unwrap(), funds: vec![], @@ -440,7 +440,7 @@ fn test_collect_protocol_fees_successful() { contract_addr: "asset0001".to_string(), msg: to_json_binary(&Cw20ExecuteMsg::Transfer { recipient: "collector".to_string(), - amount: protocol_fees_for_asset0001.clone().first().unwrap().amount, + amount: protocol_fees_for_asset0001.first().unwrap().amount, }) .unwrap(), funds: vec![], diff --git a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/withdrawals.rs b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/withdrawals.rs index af13bcc9..76b73dc0 100644 --- a/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/withdrawals.rs +++ b/contracts/liquidity_hub/pool-network/stableswap_3pool/src/tests/withdrawals.rs @@ -116,7 +116,7 @@ fn withdraw_liquidity_cw20_lp() { let env = mock_env(); let info = mock_info("liquidity0000", &[]); - let res = execute(deps.as_mut(), env.clone(), info, msg).unwrap(); + let res = execute(deps.as_mut(), env, info, msg).unwrap(); let log_withdrawn_share = res.attributes.get(2).expect("no log"); let log_refund_assets = res.attributes.get(3).expect("no log"); let msg_refund_0 = res.messages.first().expect("no message"); @@ -470,7 +470,7 @@ fn test_withdrawal_unauthorized() { let env = mock_env(); let info = mock_info("addr0000", &[]); - instantiate(deps.as_mut(), env.clone(), info.clone(), msg).unwrap(); + instantiate(deps.as_mut(), env, info, msg).unwrap(); // withdraw liquidity should fail let msg = ExecuteMsg::Receive(Cw20ReceiveMsg { @@ -543,7 +543,7 @@ fn test_withdrawal_wrong_message() { let env = mock_env(); let info = mock_info("addr0000", &[]); - instantiate(deps.as_mut(), env.clone(), info.clone(), msg).unwrap(); + instantiate(deps.as_mut(), env, info, msg).unwrap(); // withdraw liquidity should fail let msg = ExecuteMsg::Receive(Cw20ReceiveMsg {