From afc047e72ef57d219452378b3460a147d5957968 Mon Sep 17 00:00:00 2001 From: amit-momin Date: Fri, 7 Feb 2025 12:19:26 -0600 Subject: [PATCH] Fixed rust linting --- .../contract-reader-interface-secondary/src/lib.rs | 6 +++--- contracts/programs/contract-reader-interface/src/lib.rs | 6 +++--- integration-tests/relayinterface/chain_components_test.go | 8 -------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/contracts/programs/contract-reader-interface-secondary/src/lib.rs b/contracts/programs/contract-reader-interface-secondary/src/lib.rs index 6ba47af70..590d75643 100644 --- a/contracts/programs/contract-reader-interface-secondary/src/lib.rs +++ b/contracts/programs/contract-reader-interface-secondary/src/lib.rs @@ -27,9 +27,9 @@ pub mod contract_reader_interface_secondary { test_struct_account.accounts = data.accounts; test_struct_account.different_field = data.different_field; test_struct_account.big_field = data.big_field; - test_struct_account.account_struct = data.account_struct.clone(); - test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct.clone(); - test_struct_account.nested_static_struct = data.nested_static_struct.clone(); + test_struct_account.account_struct = data.account_struct; + test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct; + test_struct_account.nested_static_struct = data.nested_static_struct; Ok(()) } diff --git a/contracts/programs/contract-reader-interface/src/lib.rs b/contracts/programs/contract-reader-interface/src/lib.rs index 435fe4ea4..691e6b5b9 100644 --- a/contracts/programs/contract-reader-interface/src/lib.rs +++ b/contracts/programs/contract-reader-interface/src/lib.rs @@ -42,9 +42,9 @@ pub mod contract_reader_interface { test_struct_account.accounts = data.accounts; test_struct_account.different_field = data.different_field; test_struct_account.big_field = data.big_field; - test_struct_account.account_struct = data.account_struct.clone(); - test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct.clone(); - test_struct_account.nested_static_struct = data.nested_static_struct.clone(); + test_struct_account.account_struct = data.account_struct; + test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct; + test_struct_account.nested_static_struct = data.nested_static_struct; Ok(()) } diff --git a/integration-tests/relayinterface/chain_components_test.go b/integration-tests/relayinterface/chain_components_test.go index c859c231c..71eb0c43e 100644 --- a/integration-tests/relayinterface/chain_components_test.go +++ b/integration-tests/relayinterface/chain_components_test.go @@ -44,14 +44,6 @@ import ( solanautils "github.com/smartcontractkit/chainlink-solana/pkg/solana/utils" ) -const ( - SolanaContractReaderGetLatestValueAsValuesDotValue = "Gets the latest value as a values.Value for Solana" - SolanaContractReaderGetLatestValue = "Gets the latest value for Solana" - SolanaContractReaderBatchGetLatestValue = "BatchGetLatestValues works for Solana" - SolanaContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrder = "BatchGetLatestValues supports same read with different params and results retain order from request for Solana" - SolanaContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrderMultipleContracts = "BatchGetLatestValues supports same read with different params and results retain order from request even with multiple contracts for Solana" -) - func TestChainComponents(t *testing.T) { t.Parallel() helper := &helper{}