From da191bda8a00554907d25043b86a6746357acb30 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Mon, 18 Mar 2024 15:17:11 -0500 Subject: [PATCH] Enable clippy's empty_line_after_outer_attr linter --- Cargo.toml | 1 + crates/ethereum-forks/src/forkid.rs | 1 - crates/net/eth-wire/src/errors/eth.rs | 1 - crates/node-core/src/args/rpc_state_cache_args.rs | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3e2571fe7009..43f20c54440d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,6 +87,7 @@ rust.unreachable_pub = "warn" rustdoc.all = "warn" rust.unused_must_use = "deny" rust.rust_2018_idioms = "deny" +clippy.empty_line_after_outer_attr = "deny" [workspace.package] version = "0.2.0-beta.3" diff --git a/crates/ethereum-forks/src/forkid.rs b/crates/ethereum-forks/src/forkid.rs index 862aecfa696a..40a8281d6e4c 100644 --- a/crates/ethereum-forks/src/forkid.rs +++ b/crates/ethereum-forks/src/forkid.rs @@ -108,7 +108,6 @@ impl From for u64 { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(any(test, feature = "arbitrary"), derive(PropTestArbitrary, Arbitrary))] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable, RlpMaxEncodedLen)] - pub struct ForkId { /// CRC32 checksum of the all fork blocks and timestamps from genesis. pub hash: ForkHash, diff --git a/crates/net/eth-wire/src/errors/eth.rs b/crates/net/eth-wire/src/errors/eth.rs index afa4fe0aee67..126394cacd5c 100644 --- a/crates/net/eth-wire/src/errors/eth.rs +++ b/crates/net/eth-wire/src/errors/eth.rs @@ -79,7 +79,6 @@ impl From for EthStreamError { /// Error that can occur during the `eth` sub-protocol handshake. #[derive(thiserror::Error, Debug)] - pub enum EthHandshakeError { /// Status message received or sent outside of the handshake process. #[error("status message can only be recv/sent in handshake")] diff --git a/crates/node-core/src/args/rpc_state_cache_args.rs b/crates/node-core/src/args/rpc_state_cache_args.rs index bb152e66c753..c24a00074c6d 100644 --- a/crates/node-core/src/args/rpc_state_cache_args.rs +++ b/crates/node-core/src/args/rpc_state_cache_args.rs @@ -7,7 +7,6 @@ use reth_rpc::eth::cache::{ /// Parameters to configure RPC state cache. #[derive(Debug, Clone, Args, PartialEq, Eq)] #[command(next_help_heading = "RPC State Cache")] - pub struct RpcStateCacheArgs { /// Max number of blocks in cache. #[arg(