chore: fix unnameable-types lint on core, payload and primitives-traits crates (#9724)

This commit is contained in:
Tuan Tran
2024-07-23 19:08:01 +07:00
committed by GitHub
parent 48c42f5630
commit 88c7b2cfa1
5 changed files with 6 additions and 5 deletions

View File

@ -232,7 +232,7 @@ mod test {
use tokio_util::codec::Decoder; use tokio_util::codec::Decoder;
#[derive(Debug, PartialEq, Eq, RlpDecodable)] #[derive(Debug, PartialEq, Eq, RlpDecodable)]
pub struct MockReceipt { struct MockReceipt {
tx_type: u8, tx_type: u8,
status: u64, status: u64,
cumulative_gas_used: u64, cumulative_gas_used: u64,

View File

@ -22,7 +22,7 @@ pub use database::DatabaseArgs;
/// LogArgs struct for configuring the logger /// LogArgs struct for configuring the logger
mod log; mod log;
pub use log::{ColorMode, LogArgs}; pub use log::{ColorMode, LogArgs, Verbosity};
/// `PayloadBuilderArgs` struct for configuring the payload builder /// `PayloadBuilderArgs` struct for configuring the payload builder
mod payload_builder; mod payload_builder;

View File

@ -20,11 +20,12 @@ pub enum Events<Engine: PayloadTypes> {
/// Represents a receiver for various payload events. /// Represents a receiver for various payload events.
#[derive(Debug)] #[derive(Debug)]
pub struct PayloadEvents<Engine: PayloadTypes> { pub struct PayloadEvents<Engine: PayloadTypes> {
/// The receiver for the payload events.
pub receiver: broadcast::Receiver<Events<Engine>>, pub receiver: broadcast::Receiver<Events<Engine>>,
} }
impl<Engine: PayloadTypes + 'static> PayloadEvents<Engine> { impl<Engine: PayloadTypes + 'static> PayloadEvents<Engine> {
// Convert this receiver into a stream of PayloadEvents. /// Convert this receiver into a stream of `PayloadEvents`.
pub fn into_stream(self) -> BroadcastStream<Events<Engine>> { pub fn into_stream(self) -> BroadcastStream<Events<Engine>> {
BroadcastStream::new(self.receiver) BroadcastStream::new(self.receiver)
} }

View File

@ -113,7 +113,7 @@ pub mod noop;
#[cfg(any(test, feature = "test-utils"))] #[cfg(any(test, feature = "test-utils"))]
pub mod test_utils; pub mod test_utils;
pub use events::Events; pub use events::{Events, PayloadEvents};
pub use reth_rpc_types::engine::PayloadId; pub use reth_rpc_types::engine::PayloadId;
pub use service::{ pub use service::{
PayloadBuilderHandle, PayloadBuilderService, PayloadServiceCommand, PayloadStore, PayloadBuilderHandle, PayloadBuilderService, PayloadServiceCommand, PayloadStore,

View File

@ -25,7 +25,7 @@ pub mod account;
pub use account::{Account, Bytecode}; pub use account::{Account, Bytecode};
mod integer_list; mod integer_list;
pub use integer_list::IntegerList; pub use integer_list::{IntegerList, RoaringBitmapError};
pub mod request; pub mod request;
pub use request::{Request, Requests}; pub use request::{Request, Requests};