mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): make clippy happy (#3090)
This commit is contained in:
@ -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()
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user