diff --git a/sdk-libs/client/src/indexer/photon_indexer.rs b/sdk-libs/client/src/indexer/photon_indexer.rs index a220c16554..7e1914e750 100644 --- a/sdk-libs/client/src/indexer/photon_indexer.rs +++ b/sdk-libs/client/src/indexer/photon_indexer.rs @@ -138,7 +138,7 @@ impl PhotonIndexer { let error_message = error .clone() .message - .unwrap_or_else(|| format!("Unknown API error: {:?}", error).to_string()); + .unwrap_or_else(|| format!("Unknown API error: {:?}", error)); return Err(IndexerError::ApiError(format!( "API error in {} (code: {:?}): {}", context, error.code, error_message diff --git a/sdk-libs/client/src/indexer/types.rs b/sdk-libs/client/src/indexer/types.rs index d2f8ef89a2..ac0302d3fc 100644 --- a/sdk-libs/client/src/indexer/types.rs +++ b/sdk-libs/client/src/indexer/types.rs @@ -952,7 +952,7 @@ impl Into> |token_account| light_ctoken_sdk::compat::TokenDataWithMerkleContext { token_data: token_account.token, compressed_account: CompressedAccountWithMerkleContext::from( - token_account.account.clone(), + token_account.account, ), }, ) diff --git a/sdk-libs/client/src/rpc/client.rs b/sdk-libs/client/src/rpc/client.rs index 8a3226c72e..65f26bc568 100644 --- a/sdk-libs/client/src/rpc/client.rs +++ b/sdk-libs/client/src/rpc/client.rs @@ -144,7 +144,7 @@ impl LightClient { RpcUrl::ZKTestnet } else { // Default to mainnet for production URLs and custom URLs - RpcUrl::Custom(url.to_string()) + RpcUrl::Custom(url) } } @@ -238,7 +238,6 @@ impl LightClient { .transaction .transaction .decode() - .clone() .unwrap(); let account_keys = decoded_transaction.message.static_account_keys(); let meta = transaction.transaction.meta.as_ref().ok_or_else(|| {