diff --git a/crates/rpc/rpc/src/eth/filter.rs b/crates/rpc/rpc/src/eth/filter.rs index 1b57cfd363..83310b527a 100644 --- a/crates/rpc/rpc/src/eth/filter.rs +++ b/crates/rpc/rpc/src/eth/filter.rs @@ -9,12 +9,12 @@ use std::sync::Arc; /// `Eth` filter RPC implementation. #[derive(Debug, Clone)] -pub struct EthFilter { +pub struct EthFilter { /// All nested fields bundled together. - inner: Arc>, + inner: Arc>, } -impl EthFilter { +impl EthFilter { /// Creates a new, shareable instance. pub fn new(client: Arc, pool: Pool) -> Self { let inner = EthFilterInner { client, pool }; @@ -23,10 +23,10 @@ impl EthFilter { } #[async_trait] -impl EthFilterApiServer for EthFilter +impl EthFilterApiServer for EthFilter where - Pool: TransactionPool + 'static, Client: BlockProvider + 'static, + Pool: TransactionPool + 'static, { fn new_filter(&self, _filter: Filter) -> RpcResult { todo!() @@ -59,7 +59,7 @@ where /// Container type `EthFilter` #[derive(Debug)] -struct EthFilterInner { +struct EthFilterInner { /// The transaction pool. pool: Pool, /// The client that can interact with the chain. diff --git a/crates/rpc/rpc/src/eth/pubsub.rs b/crates/rpc/rpc/src/eth/pubsub.rs index b0c10d5c01..393b0003de 100644 --- a/crates/rpc/rpc/src/eth/pubsub.rs +++ b/crates/rpc/rpc/src/eth/pubsub.rs @@ -11,14 +11,14 @@ use std::sync::Arc; /// /// This handles #[derive(Debug, Clone)] -pub struct EthPubSub { +pub struct EthPubSub { /// All nested fields bundled together. - inner: Arc>, + inner: Arc>, } // === impl EthPubSub === -impl EthPubSub { +impl EthPubSub { /// Creates a new, shareable instance. pub fn new(client: Arc, pool: Pool) -> Self { let inner = EthPubSubInner { client, pool }; @@ -26,10 +26,10 @@ impl EthPubSub { } } -impl EthPubSubApiServer for EthPubSub +impl EthPubSubApiServer for EthPubSub where - Pool: TransactionPool + 'static, Client: BlockProvider + 'static, + Pool: TransactionPool + 'static, { fn subscribe( &self, @@ -43,7 +43,7 @@ where } /// The actual handler for and accepted [`EthPubSub::subscribe`] call. -async fn handle_accepted( +async fn handle_accepted( _pool: Pool, _client: Arc, _accepted_sink: SubscriptionSink, @@ -54,7 +54,7 @@ async fn handle_accepted( /// Container type `EthPubSub` #[derive(Debug)] -struct EthPubSubInner { +struct EthPubSubInner { /// The transaction pool. pool: Pool, /// The client that can interact with the chain.