mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: fix unnameable-types lint on core, payload and primitives-traits crates (#9724)
This commit is contained in:
@ -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,
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
Reference in New Issue
Block a user