diff --git a/src/node/rpc/precompile.rs b/src/node/rpc/precompile.rs index 92c1bf028..752d9916c 100644 --- a/src/node/rpc/precompile.rs +++ b/src/node/rpc/precompile.rs @@ -38,7 +38,7 @@ where { async fn block_precompile_data(&self, block: BlockId) -> RpcResult { trace!(target: "rpc::eth", ?block, "Serving eth_blockPrecompileData"); - let hl_extras = self.eth_api.get_hl_extras(block).map_err(|e| EthApiError::from(e))?; + let hl_extras = self.eth_api.get_hl_extras(block).map_err(EthApiError::from)?; Ok(hl_extras) } }