Enable clippy's empty_line_after_outer_attr linter (#7200)

This commit is contained in:
Justin Traglia
2024-03-18 16:59:03 -05:00
committed by GitHub
parent abce09cc76
commit 80c5fcbd36
4 changed files with 1 additions and 3 deletions

View File

@ -87,6 +87,7 @@ rust.unreachable_pub = "warn"
rustdoc.all = "warn" rustdoc.all = "warn"
rust.unused_must_use = "deny" rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny" rust.rust_2018_idioms = "deny"
clippy.empty_line_after_outer_attr = "deny"
[workspace.package] [workspace.package]
version = "0.2.0-beta.3" version = "0.2.0-beta.3"

View File

@ -108,7 +108,6 @@ impl From<ForkFilterKey> for u64 {
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(any(test, feature = "arbitrary"), derive(PropTestArbitrary, Arbitrary))] #[cfg_attr(any(test, feature = "arbitrary"), derive(PropTestArbitrary, Arbitrary))]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable, RlpMaxEncodedLen)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable, RlpMaxEncodedLen)]
pub struct ForkId { pub struct ForkId {
/// CRC32 checksum of the all fork blocks and timestamps from genesis. /// CRC32 checksum of the all fork blocks and timestamps from genesis.
pub hash: ForkHash, pub hash: ForkHash,

View File

@ -79,7 +79,6 @@ impl From<alloy_rlp::Error> for EthStreamError {
/// Error that can occur during the `eth` sub-protocol handshake. /// Error that can occur during the `eth` sub-protocol handshake.
#[derive(thiserror::Error, Debug)] #[derive(thiserror::Error, Debug)]
pub enum EthHandshakeError { pub enum EthHandshakeError {
/// Status message received or sent outside of the handshake process. /// Status message received or sent outside of the handshake process.
#[error("status message can only be recv/sent in handshake")] #[error("status message can only be recv/sent in handshake")]

View File

@ -7,7 +7,6 @@ use reth_rpc::eth::cache::{
/// Parameters to configure RPC state cache. /// Parameters to configure RPC state cache.
#[derive(Debug, Clone, Args, PartialEq, Eq)] #[derive(Debug, Clone, Args, PartialEq, Eq)]
#[command(next_help_heading = "RPC State Cache")] #[command(next_help_heading = "RPC State Cache")]
pub struct RpcStateCacheArgs { pub struct RpcStateCacheArgs {
/// Max number of blocks in cache. /// Max number of blocks in cache.
#[arg( #[arg(