Skip to content

Commit

Permalink
Enable clippy's empty_line_after_outer_attr linter (paradigmxyz#7200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored and Ruteri committed Apr 17, 2024
1 parent c1f9a07 commit 58a8d54
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
13 changes: 12 additions & 1 deletion Cargo.toml
Expand Up @@ -84,9 +84,10 @@ resolver = "2"
rust.missing_debug_implementations = "warn"
rust.missing_docs = "warn"
rust.unreachable_pub = "warn"
rustdoc.all = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny"
rustdoc.all = "warn"
clippy.empty_line_after_outer_attr = "deny"

[workspace.package]
version = "0.2.0-beta.3"
Expand All @@ -101,6 +102,8 @@ exclude = [".github/"]
[profile.dev.package]
proptest.opt-level = 3
rand_xorshift.opt-level = 3
rand_chacha.opt-level = 3
unarray.opt-level = 3

# Meant for testing - all optimizations, but with debug assertions and overflow checks.
[profile.hivetests]
Expand Down Expand Up @@ -153,6 +156,7 @@ reth-optimism-payload-builder = { path = "crates/payload/optimism" }
reth-interfaces = { path = "crates/interfaces" }
reth-ipc = { path = "crates/rpc/ipc" }
reth-libmdbx = { path = "crates/storage/libmdbx-rs" }
reth-mdbx-sys = { path = "crates/storage/libmdbx-rs/mdbx-sys" }
reth-metrics = { path = "crates/metrics" }
reth-metrics-derive = { path = "crates/metrics/metrics-derive" }
reth-net-common = { path = "crates/net/common" }
Expand All @@ -168,6 +172,7 @@ reth-prune = { path = "crates/prune" }
reth-revm = { path = "crates/revm" }
reth-rpc = { path = "crates/rpc/rpc" }
reth-rpc-api = { path = "crates/rpc/rpc-api" }
reth-rpc-api-testing-util = { path = "crates/rpc/rpc-testing-util" }
reth-rpc-builder = { path = "crates/rpc/rpc-builder" }
reth-rpc-engine-api = { path = "crates/rpc/rpc-engine-api" }
reth-rpc-types = { path = "crates/rpc/rpc-types" }
Expand All @@ -179,6 +184,7 @@ reth-tokio-util = { path = "crates/tokio-util" }
reth-tracing = { path = "crates/tracing" }
reth-transaction-pool = { path = "crates/transaction-pool" }
reth-trie = { path = "crates/trie" }
reth-trie-parallel = { path = "crates/trie-parallel" }

# revm
revm = { version = "7.1.0", features = ["std", "secp256k1"], default-features = false }
Expand All @@ -203,6 +209,10 @@ alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "410850b" }
ethers-core = { version = "2.0.14", default-features = false }
ethers-providers = { version = "2.0.14", default-features = false }

# js
boa_engine = "0.17"
boa_gc = "0.17"

# misc
aquamarine = "0.5"
bytes = "1.5"
Expand All @@ -223,6 +233,7 @@ rayon = "1.7"
itertools = "0.12"
parking_lot = "0.12"
metrics = "0.21.1" # Needed for `metrics-macro` to resolve the crate using `::metrics` notation
hex-literal = "0.4"
once_cell = "1.17"
syn = "2.0"
nybbles = "0.2.1"
Expand Down
1 change: 0 additions & 1 deletion crates/ethereum-forks/src/forkid.rs
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion crates/net/eth-wire/src/errors/eth.rs
Expand Up @@ -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")]
Expand Down
1 change: 0 additions & 1 deletion crates/node-core/src/args/rpc_state_cache_args.rs
Expand Up @@ -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(
Expand Down

0 comments on commit 58a8d54

Please sign in to comment.