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

@ -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)