From 560efdcd71b7070b5b48c19c9991a84da2b998a2 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Wed, 8 Jan 2025 11:37:05 +0200 Subject: [PATCH] clippy --- integration-tests/src/test_loop/builder.rs | 3 +-- integration-tests/src/tests/network/runner.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/integration-tests/src/test_loop/builder.rs b/integration-tests/src/test_loop/builder.rs index 4f04b24994b..fb6136de4b8 100644 --- a/integration-tests/src/test_loop/builder.rs +++ b/integration-tests/src/test_loop/builder.rs @@ -42,7 +42,6 @@ use near_store::{Store, StoreConfig, TrieConfig}; use near_vm_runner::logic::ProtocolVersion; use near_vm_runner::{ContractRuntimeCache, FilesystemContractRuntimeCache}; use nearcore::state_sync::StateSyncDumper; -use tokio::runtime::Runtime; use super::env::{ClientToShardsManagerSender, TestData, TestLoopChunksStorage, TestLoopEnv}; use super::utils::network::{chunk_endorsement_dropper, chunk_endorsement_dropper_by_hash}; @@ -722,7 +721,7 @@ impl TestLoopBuilder { let networking_rt = Arc::new(tokio::runtime::Builder::new_current_thread().build().unwrap()); - let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt.clone())); + let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt)); let partial_witness_actor = PartialWitnessActor::new( networking_spawner, self.test_loop.clock(), diff --git a/integration-tests/src/tests/network/runner.rs b/integration-tests/src/tests/network/runner.rs index 654e7832eb5..3138a5dc90d 100644 --- a/integration-tests/src/tests/network/runner.rs +++ b/integration-tests/src/tests/network/runner.rs @@ -141,7 +141,7 @@ fn setup_network_node( client_config.chunk_request_retry_period, ); let networking_rt = Arc::new(tokio::runtime::Builder::new_current_thread().build().unwrap()); - let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt.clone())); + let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt)); let (partial_witness_actor, _) = spawn_actix_actor(PartialWitnessActor::new( networking_spawner, Clock::real(),