chore(clippy): make clippy happy (#3090)

This commit is contained in:
Matthias Seitz
2023-06-10 13:59:56 +02:00
committed by GitHub
parent 6ef3e12fac
commit 86a130b683
4 changed files with 5 additions and 11 deletions

View File

@ -12,10 +12,7 @@ use reth_rpc_builder::{
use reth_rpc_engine_api::EngineApi;
use reth_tasks::TokioTaskExecutor;
use reth_transaction_pool::test_utils::{testing_pool, TestPool};
use std::{
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
sync::Arc,
};
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
use tokio::sync::mpsc::unbounded_channel;
/// Localhost with port 0 so a free port is used.

View File

@ -163,7 +163,6 @@ mod tests {
use reth_primitives::{
GOERLI, GOERLI_GENESIS, MAINNET, MAINNET_GENESIS, SEPOLIA, SEPOLIA_GENESIS,
};
use std::sync::Arc;
#[test]
fn success_init_genesis_mainnet() {

View File

@ -20,7 +20,7 @@
//!
//! ```
//! # use std::sync::Arc;
//! # use reth_db::mdbx::test_utils::create_test_rw_db;
//! use reth_db::mdbx::test_utils::create_test_rw_db;
//! # use reth_downloaders::bodies::bodies::BodiesDownloaderBuilder;
//! # use reth_downloaders::headers::reverse_headers::ReverseHeadersDownloaderBuilder;
//! # use reth_interfaces::consensus::Consensus;
@ -43,7 +43,7 @@
//! # db.clone()
//! # );
//! # let (tip_tx, tip_rx) = watch::channel(H256::default());
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
//! # let factory = Factory::new(MAINNET.clone());
//! // Create a pipeline that can fully sync
//! # let pipeline =
//! Pipeline::builder()

View File

@ -14,10 +14,9 @@
//! # use reth_stages::sets::{OfflineStages};
//! # use reth_revm::Factory;
//! # use reth_primitives::MAINNET;
//! # use std::sync::Arc;
//! use reth_db::mdbx::test_utils::create_test_rw_db;
//!
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
//! # let factory = Factory::new(MAINNET.clone());
//! # let db = create_test_rw_db();
//! // Build a pipeline with all offline stages.
//! # let pipeline =
@ -29,9 +28,8 @@
//! # use reth_stages::{StageSet, sets::OfflineStages};
//! # use reth_revm::Factory;
//! # use reth_primitives::MAINNET;
//! # use std::sync::Arc;
//! // Build a pipeline with all offline stages and a custom stage at the end.
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
//! # let factory = Factory::new(MAINNET.clone());
//! Pipeline::builder()
//! .add_stages(
//! OfflineStages::new(factory).builder().add_stage(MyCustomStage)