diff --git a/bridges/relays/bin-ethereum/src/rialto_client.rs b/bridges/relays/bin-ethereum/src/rialto_client.rs index c294edbf4e877..d9c0f265cbb95 100644 --- a/bridges/relays/bin-ethereum/src/rialto_client.rs +++ b/bridges/relays/bin-ethereum/src/rialto_client.rs @@ -156,7 +156,7 @@ impl SubmitEthereumHeaders for SubstrateClient { ) -> SubmittedHeaders { let ids = headers.iter().map(|header| header.id()).collect(); let submission_result = async { - self.submit_signed_extrinsic(params.public().as_array_ref().clone().into(), |transaction_nonce| { + self.submit_signed_extrinsic((*params.public().as_array_ref()).into(), |transaction_nonce| { Bytes( Rialto::sign_transaction( *self.genesis_hash(), @@ -257,7 +257,7 @@ impl SubmitEthereumExchangeTransactionProof for SubstrateClient { instance: Arc, proof: rialto_runtime::exchange::EthereumTransactionInclusionProof, ) -> RpcResult<()> { - self.submit_signed_extrinsic(params.public().as_array_ref().clone().into(), |transaction_nonce| { + self.submit_signed_extrinsic((*params.public().as_array_ref()).into(), |transaction_nonce| { Bytes( Rialto::sign_transaction( *self.genesis_hash(), diff --git a/bridges/relays/bin-substrate/src/rialto_millau/millau_headers_to_rialto.rs b/bridges/relays/bin-substrate/src/rialto_millau/millau_headers_to_rialto.rs index 3091df31ff1eb..58f0620b0764b 100644 --- a/bridges/relays/bin-substrate/src/rialto_millau/millau_headers_to_rialto.rs +++ b/bridges/relays/bin-substrate/src/rialto_millau/millau_headers_to_rialto.rs @@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for MillauFinalityToRialto { type TargetChain = Rialto; fn transactions_author(&self) -> bp_rialto::AccountId { - self.target_sign.public().as_array_ref().clone().into() + (*self.target_sign.public().as_array_ref()).into() } fn make_submit_finality_proof_transaction( diff --git a/bridges/relays/bin-substrate/src/rialto_millau/millau_messages_to_rialto.rs b/bridges/relays/bin-substrate/src/rialto_millau/millau_messages_to_rialto.rs index 0e80aacc176da..82c3dbaa3bc7e 100644 --- a/bridges/relays/bin-substrate/src/rialto_millau/millau_messages_to_rialto.rs +++ b/bridges/relays/bin-substrate/src/rialto_millau/millau_messages_to_rialto.rs @@ -59,7 +59,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto { type TargetChain = Rialto; fn source_transactions_author(&self) -> bp_rialto::AccountId { - self.source_sign.public().as_array_ref().clone().into() + (*self.source_sign.public().as_array_ref()).into() } fn make_messages_receiving_proof_transaction( @@ -86,7 +86,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto { } fn target_transactions_author(&self) -> bp_rialto::AccountId { - self.target_sign.public().as_array_ref().clone().into() + (*self.target_sign.public().as_array_ref()).into() } fn make_messages_delivery_transaction( @@ -141,7 +141,7 @@ pub async fn run( metrics_params: MetricsParams, ) -> Result<(), String> { let stall_timeout = Duration::from_secs(5 * 60); - let relayer_id_at_millau = millau_sign.public().as_array_ref().clone().into(); + let relayer_id_at_millau = (*millau_sign.public().as_array_ref()).into(); let lane = MillauMessagesToRialto { source_client: millau_client.clone(), diff --git a/bridges/relays/bin-substrate/src/rialto_millau/rialto_headers_to_millau.rs b/bridges/relays/bin-substrate/src/rialto_millau/rialto_headers_to_millau.rs index 1c36991fd2727..39295c89433e8 100644 --- a/bridges/relays/bin-substrate/src/rialto_millau/rialto_headers_to_millau.rs +++ b/bridges/relays/bin-substrate/src/rialto_millau/rialto_headers_to_millau.rs @@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for RialtoFinalityToMillau { type TargetChain = Millau; fn transactions_author(&self) -> bp_millau::AccountId { - self.target_sign.public().as_array_ref().clone().into() + (*self.target_sign.public().as_array_ref()).into() } fn make_submit_finality_proof_transaction( diff --git a/bridges/relays/bin-substrate/src/rialto_millau/rialto_messages_to_millau.rs b/bridges/relays/bin-substrate/src/rialto_millau/rialto_messages_to_millau.rs index ed231cd208e9e..b98edccdc2dfb 100644 --- a/bridges/relays/bin-substrate/src/rialto_millau/rialto_messages_to_millau.rs +++ b/bridges/relays/bin-substrate/src/rialto_millau/rialto_messages_to_millau.rs @@ -59,7 +59,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau { type TargetChain = Millau; fn source_transactions_author(&self) -> bp_rialto::AccountId { - self.source_sign.public().as_array_ref().clone().into() + (*self.source_sign.public().as_array_ref()).into() } fn make_messages_receiving_proof_transaction( @@ -86,7 +86,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau { } fn target_transactions_author(&self) -> bp_rialto::AccountId { - self.target_sign.public().as_array_ref().clone().into() + (*self.target_sign.public().as_array_ref()).into() } fn make_messages_delivery_transaction( @@ -141,7 +141,7 @@ pub async fn run( metrics_params: MetricsParams, ) -> Result<(), String> { let stall_timeout = Duration::from_secs(5 * 60); - let relayer_id_at_rialto = rialto_sign.public().as_array_ref().clone().into(); + let relayer_id_at_rialto = (*rialto_sign.public().as_array_ref()).into(); let lane = RialtoMessagesToMillau { source_client: rialto_client.clone(), diff --git a/bridges/relays/bin-substrate/src/rialto_millau/westend_headers_to_millau.rs b/bridges/relays/bin-substrate/src/rialto_millau/westend_headers_to_millau.rs index ac69a7437ed3d..c6f9a1fd3d8ba 100644 --- a/bridges/relays/bin-substrate/src/rialto_millau/westend_headers_to_millau.rs +++ b/bridges/relays/bin-substrate/src/rialto_millau/westend_headers_to_millau.rs @@ -58,7 +58,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau { } fn transactions_author(&self) -> bp_millau::AccountId { - self.target_sign.public().as_array_ref().clone().into() + (*self.target_sign.public().as_array_ref()).into() } fn make_submit_finality_proof_transaction( diff --git a/bridges/relays/headers/src/sync_loop.rs b/bridges/relays/headers/src/sync_loop.rs index 2e0d12ec87c8f..d193996d0c301 100644 --- a/bridges/relays/headers/src/sync_loop.rs +++ b/bridges/relays/headers/src/sync_loop.rs @@ -628,5 +628,5 @@ fn print_sync_progress( now_best_header.map(|id| id.0), now_target_header, ); - (now_time, now_best_header.clone().map(|id| id.0), *now_target_header) + (now_time, (*now_best_header).map(|id| id.0), *now_target_header) }