mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Enable clippy's empty_line_after_outer_attr linter (#7200)
This commit is contained in:
@ -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"
|
||||
|
||||
@ -108,7 +108,6 @@ impl From<ForkFilterKey> 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,
|
||||
|
||||
@ -79,7 +79,6 @@ impl From<alloy_rlp::Error> 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")]
|
||||
|
||||
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user