diff --git a/crates/optimism/rpc/src/eth/mod.rs b/crates/optimism/rpc/src/eth/mod.rs index 109a0c809580..a7954792d63c 100644 --- a/crates/optimism/rpc/src/eth/mod.rs +++ b/crates/optimism/rpc/src/eth/mod.rs @@ -251,7 +251,7 @@ where type Ctx<'a> = &'a EthApiBuilderCtx; fn builder() -> Box Fn(Self::Ctx<'a>) -> Self + Send> { - Box::new(|ctx| Self::with_spawner(ctx)) + Box::new(Self::with_spawner) } } diff --git a/crates/rpc/rpc/src/eth/core.rs b/crates/rpc/rpc/src/eth/core.rs index 73b10b05eca0..3836ed0128e0 100644 --- a/crates/rpc/rpc/src/eth/core.rs +++ b/crates/rpc/rpc/src/eth/core.rs @@ -159,16 +159,15 @@ where } } -impl BuilderProvider for EthApi +impl BuilderProvider for EthApi where N: FullNodeComponents, - Network: Send + Sync + Clone + 'static, { type Ctx<'a> = - &'a EthApiBuilderCtx; + &'a EthApiBuilderCtx; fn builder() -> Box Fn(Self::Ctx<'a>) -> Self + Send> { - Box::new(|ctx| Self::with_spawner(ctx)) + Box::new(Self::with_spawner) } }