diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0eef396640a2..0a06f66b771e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-09-09 + toolchain: nightly components: clippy - uses: Swatinem/rust-cache@v2 with: diff --git a/crates/chain-state/src/test_utils.rs b/crates/chain-state/src/test_utils.rs index d101b309a92a..4bbd75815ddc 100644 --- a/crates/chain-state/src/test_utils.rs +++ b/crates/chain-state/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{ in_memory::ExecutedBlock, CanonStateNotification, CanonStateNotifications, CanonStateSubscriptions, diff --git a/crates/consensus/beacon/src/engine/test_utils.rs b/crates/consensus/beacon/src/engine/test_utils.rs index 72e5d825fecb..c25e4aa24be7 100644 --- a/crates/consensus/beacon/src/engine/test_utils.rs +++ b/crates/consensus/beacon/src/engine/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{ engine::hooks::PruneHook, hooks::EngineHooks, BeaconConsensusEngine, BeaconConsensusEngineError, BeaconConsensusEngineHandle, BeaconForkChoiceUpdateError, diff --git a/crates/engine/tree/src/test_utils.rs b/crates/engine/tree/src/test_utils.rs index d76fabf43f6f..9dba4fffcb01 100644 --- a/crates/engine/tree/src/test_utils.rs +++ b/crates/engine/tree/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_chainspec::ChainSpec; use reth_network_p2p::test_utils::TestFullBlockClient; use reth_primitives::{BlockBody, SealedHeader, B256}; diff --git a/crates/ethereum/node/tests/e2e/main.rs b/crates/ethereum/node/tests/e2e/main.rs index e7bd7f032fea..4058073b42d4 100644 --- a/crates/ethereum/node/tests/e2e/main.rs +++ b/crates/ethereum/node/tests/e2e/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod blobs; mod dev; mod eth; diff --git a/crates/ethereum/node/tests/it/main.rs b/crates/ethereum/node/tests/it/main.rs index be04f7ed89e4..8d00188929af 100644 --- a/crates/ethereum/node/tests/it/main.rs +++ b/crates/ethereum/node/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod builder; mod exex; diff --git a/crates/evm/src/test_utils.rs b/crates/evm/src/test_utils.rs index c3aa34a56a45..ca0332d9219f 100644 --- a/crates/evm/src/test_utils.rs +++ b/crates/evm/src/test_utils.rs @@ -1,5 +1,5 @@ //! Helpers for testing. - +#![allow(missing_docs)] use crate::execute::{ BatchExecutor, BlockExecutionInput, BlockExecutionOutput, BlockExecutorProvider, Executor, }; diff --git a/crates/exex/exex/src/backfill/test_utils.rs b/crates/exex/exex/src/backfill/test_utils.rs index 26f92ea87f09..cfcccac6a9c2 100644 --- a/crates/exex/exex/src/backfill/test_utils.rs +++ b/crates/exex/exex/src/backfill/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use std::sync::Arc; use eyre::OptionExt; diff --git a/crates/metrics/metrics-derive/tests/metrics.rs b/crates/metrics/metrics-derive/tests/metrics.rs index a07ccc8a7ce1..933c82afca5b 100644 --- a/crates/metrics/metrics-derive/tests/metrics.rs +++ b/crates/metrics/metrics-derive/tests/metrics.rs @@ -1,4 +1,4 @@ -#![allow(missing_docs)] +#![expect(missing_docs)] use metrics::{ Counter, Gauge, Histogram, Key, KeyName, Label, Metadata, Recorder, SharedString, Unit, }; diff --git a/crates/net/discv4/src/test_utils.rs b/crates/net/discv4/src/test_utils.rs index 06133dba6790..640249b0a042 100644 --- a/crates/net/discv4/src/test_utils.rs +++ b/crates/net/discv4/src/test_utils.rs @@ -1,5 +1,5 @@ //! Mock discovery support - +#![allow(missing_docs)] use crate::{ proto::{FindNode, Message, Neighbours, NodeEndpoint, Packet, Ping, Pong}, receive_loop, send_loop, Discv4, Discv4Config, Discv4Service, EgressSender, IngressEvent, diff --git a/crates/net/downloaders/src/test_utils/mod.rs b/crates/net/downloaders/src/test_utils/mod.rs index 320e7ce24952..a67d94a66679 100644 --- a/crates/net/downloaders/src/test_utils/mod.rs +++ b/crates/net/downloaders/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Test helper impls. - +#![allow(missing_docs)] #![allow(dead_code)] use crate::{bodies::test_utils::create_raw_bodies, file_codec::BlockFileCodec}; diff --git a/crates/net/eth-wire/src/test_utils.rs b/crates/net/eth-wire/src/test_utils.rs index 5dfd8d74bae1..73d6847b34a3 100644 --- a/crates/net/eth-wire/src/test_utils.rs +++ b/crates/net/eth-wire/src/test_utils.rs @@ -1,5 +1,5 @@ //! Utilities for testing p2p protocol. - +#![allow(missing_docs)] use crate::{ hello::DEFAULT_TCP_PORT, EthVersion, HelloMessageWithProtocols, P2PStream, ProtocolVersion, Status, UnauthedP2PStream, diff --git a/crates/net/eth-wire/tests/fuzz_roundtrip.rs b/crates/net/eth-wire/tests/fuzz_roundtrip.rs index 7c01e1e1eb20..6fffe57768ab 100644 --- a/crates/net/eth-wire/tests/fuzz_roundtrip.rs +++ b/crates/net/eth-wire/tests/fuzz_roundtrip.rs @@ -1,5 +1,5 @@ //! Round-trip encoding fuzzing for the `eth-wire` crate. - +#![allow(missing_docs)] use alloy_rlp::{Decodable, Encodable}; use serde::Serialize; use std::fmt::Debug; diff --git a/crates/net/eth-wire/tests/new_block.rs b/crates/net/eth-wire/tests/new_block.rs index a1a6e043e382..f83b03cd3494 100644 --- a/crates/net/eth-wire/tests/new_block.rs +++ b/crates/net/eth-wire/tests/new_block.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`NewBlock`] - +#![allow(missing_docs)] use alloy_rlp::Decodable; use reth_eth_wire::NewBlock; use reth_primitives::hex; diff --git a/crates/net/eth-wire/tests/new_pooled_transactions.rs b/crates/net/eth-wire/tests/new_pooled_transactions.rs index 48022185ce49..6fa07ce6006b 100644 --- a/crates/net/eth-wire/tests/new_pooled_transactions.rs +++ b/crates/net/eth-wire/tests/new_pooled_transactions.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`NewPooledTransactions`] - +#![allow(missing_docs)] use alloy_rlp::Decodable; use reth_eth_wire::NewPooledTransactionHashes66; use reth_primitives::hex; diff --git a/crates/net/eth-wire/tests/pooled_transactions.rs b/crates/net/eth-wire/tests/pooled_transactions.rs index 5f7431f3dd73..ff5d9dfa0eba 100644 --- a/crates/net/eth-wire/tests/pooled_transactions.rs +++ b/crates/net/eth-wire/tests/pooled_transactions.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`PooledTransactions`] - +#![allow(missing_docs)] use alloy_rlp::{Decodable, Encodable}; use reth_eth_wire::{EthVersion, PooledTransactions, ProtocolMessage}; use reth_primitives::{hex, PooledTransactionsElement}; diff --git a/crates/net/network-api/src/test_utils/mod.rs b/crates/net/network-api/src/test_utils/mod.rs index a3108a476d85..b5ff6fdfc723 100644 --- a/crates/net/network-api/src/test_utils/mod.rs +++ b/crates/net/network-api/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! API for integration testing network components. - +#![allow(missing_docs)] pub mod peers_manager; pub use peers_manager::{PeerCommand, PeersHandle, PeersHandleProvider}; diff --git a/crates/net/network/src/test_utils/mod.rs b/crates/net/network/src/test_utils/mod.rs index 71639bc71502..86d06768e216 100644 --- a/crates/net/network/src/test_utils/mod.rs +++ b/crates/net/network/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Common helpers for network testing. - +#![allow(missing_docs)] mod init; mod testnet; diff --git a/crates/net/network/tests/it/connect.rs b/crates/net/network/tests/it/connect.rs index 8201b3280bcf..f01f9e0b9e5a 100644 --- a/crates/net/network/tests/it/connect.rs +++ b/crates/net/network/tests/it/connect.rs @@ -1,5 +1,4 @@ //! Connection tests - use std::{collections::HashSet, net::SocketAddr, time::Duration}; use alloy_node_bindings::Geth; diff --git a/crates/net/p2p/src/test_utils/mod.rs b/crates/net/p2p/src/test_utils/mod.rs index 1abd215d0245..799828e32d49 100644 --- a/crates/net/p2p/src/test_utils/mod.rs +++ b/crates/net/p2p/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod bodies; mod full_block; mod headers; diff --git a/crates/optimism/node/tests/e2e/main.rs b/crates/optimism/node/tests/e2e/main.rs index 5e0d022d22a0..b7ab3ad97d36 100644 --- a/crates/optimism/node/tests/e2e/main.rs +++ b/crates/optimism/node/tests/e2e/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #[cfg(feature = "optimism")] mod p2p; diff --git a/crates/optimism/node/tests/it/main.rs b/crates/optimism/node/tests/it/main.rs index 573a944351c1..810b9750611e 100644 --- a/crates/optimism/node/tests/it/main.rs +++ b/crates/optimism/node/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #[cfg(feature = "optimism")] mod builder; diff --git a/crates/payload/builder/src/test_utils.rs b/crates/payload/builder/src/test_utils.rs index e4083d3ab386..a0bfd2642453 100644 --- a/crates/payload/builder/src/test_utils.rs +++ b/crates/payload/builder/src/test_utils.rs @@ -1,5 +1,5 @@ //! Utils for testing purposes. - +#![allow(missing_docs)] use crate::{ error::PayloadBuilderError, traits::KeepPayloadJobAlive, EthBuiltPayload, EthPayloadBuilderAttributes, PayloadBuilderHandle, PayloadBuilderService, PayloadJob, diff --git a/crates/primitives-traits/src/header/test_utils.rs b/crates/primitives-traits/src/header/test_utils.rs index ef5c0d025360..93857eb4ddda 100644 --- a/crates/primitives-traits/src/header/test_utils.rs +++ b/crates/primitives-traits/src/header/test_utils.rs @@ -1,5 +1,5 @@ //! Test utilities to generate random valid headers. - +#![allow(missing_docs)] use crate::Header; use alloy_primitives::B256; use proptest::{arbitrary::any, prop_compose}; diff --git a/crates/revm/src/test_utils.rs b/crates/revm/src/test_utils.rs index f54f10a381a3..663e8a99da59 100644 --- a/crates/revm/src/test_utils.rs +++ b/crates/revm/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::precompile::HashMap; use alloc::vec::Vec; use reth_primitives::{ diff --git a/crates/rpc/rpc-builder/tests/it/main.rs b/crates/rpc/rpc-builder/tests/it/main.rs index a64ad1da2f54..1ce295f8e187 100644 --- a/crates/rpc/rpc-builder/tests/it/main.rs +++ b/crates/rpc/rpc-builder/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod auth; mod http; mod middleware; diff --git a/crates/rpc/rpc-engine-api/tests/it/main.rs b/crates/rpc/rpc-engine-api/tests/it/main.rs index fb4c7fa0d4a0..3431c0c646f1 100644 --- a/crates/rpc/rpc-engine-api/tests/it/main.rs +++ b/crates/rpc/rpc-engine-api/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod payload; const fn main() {} diff --git a/crates/stages/stages/src/test_utils/mod.rs b/crates/stages/stages/src/test_utils/mod.rs index 4e5344b22755..b6e92db0bc35 100644 --- a/crates/stages/stages/src/test_utils/mod.rs +++ b/crates/stages/stages/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_stages_api::StageId; #[cfg(test)] diff --git a/crates/storage/provider/src/test_utils/mod.rs b/crates/storage/provider/src/test_utils/mod.rs index e2d7e6d77d2d..4747d7655ee4 100644 --- a/crates/storage/provider/src/test_utils/mod.rs +++ b/crates/storage/provider/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{providers::StaticFileProvider, HashingWriter, ProviderFactory, TrieWriter}; use reth_chainspec::{ChainSpec, MAINNET}; use reth_db::{ diff --git a/crates/tracing/src/test_tracer.rs b/crates/tracing/src/test_tracer.rs index 532ad5243def..6ac9a76963c5 100644 --- a/crates/tracing/src/test_tracer.rs +++ b/crates/tracing/src/test_tracer.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::EnvFilter; diff --git a/crates/transaction-pool/src/test_utils/mod.rs b/crates/transaction-pool/src/test_utils/mod.rs index 363d6e2a4f83..c6ff38fe376b 100644 --- a/crates/transaction-pool/src/test_utils/mod.rs +++ b/crates/transaction-pool/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Internal helpers for testing. - +#![allow(missing_docs)] use crate::{blobstore::InMemoryBlobStore, noop::MockTransactionValidator, Pool, PoolConfig}; use std::ops::Deref; diff --git a/crates/transaction-pool/tests/it/main.rs b/crates/transaction-pool/tests/it/main.rs index ead33a328ddf..772d00e914d4 100644 --- a/crates/transaction-pool/tests/it/main.rs +++ b/crates/transaction-pool/tests/it/main.rs @@ -1,5 +1,5 @@ //! transaction-pool integration tests - +#![allow(missing_docs)] #[cfg(feature = "test-utils")] mod blobs; #[cfg(feature = "test-utils")] diff --git a/crates/trie/db/tests/fuzz_in_memory_nodes.rs b/crates/trie/db/tests/fuzz_in_memory_nodes.rs index 3637dc8ba8f7..a9250fc25d54 100644 --- a/crates/trie/db/tests/fuzz_in_memory_nodes.rs +++ b/crates/trie/db/tests/fuzz_in_memory_nodes.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::prelude::*; use reth_db::{ cursor::{DbCursorRO, DbCursorRW, DbDupCursorRW}, diff --git a/crates/trie/db/tests/post_state.rs b/crates/trie/db/tests/post_state.rs index 16cece392384..46e9e1052984 100644 --- a/crates/trie/db/tests/post_state.rs +++ b/crates/trie/db/tests/post_state.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::prelude::*; use proptest_arbitrary_interop::arb; use reth_db::{tables, test_utils::create_test_rw_db}; diff --git a/crates/trie/db/tests/proof.rs b/crates/trie/db/tests/proof.rs index db9d708d4f52..18c4e304f83c 100644 --- a/crates/trie/db/tests/proof.rs +++ b/crates/trie/db/tests/proof.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_chainspec::{Chain, ChainSpec, HOLESKY, MAINNET}; use reth_primitives::{constants::EMPTY_ROOT_HASH, keccak256, Account, Address, Bytes, B256, U256}; use reth_provider::test_utils::{create_test_provider_factory, insert_genesis}; diff --git a/crates/trie/db/tests/trie.rs b/crates/trie/db/tests/trie.rs index 007ce3069d4a..5db6a697a346 100644 --- a/crates/trie/db/tests/trie.rs +++ b/crates/trie/db/tests/trie.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::{prelude::ProptestConfig, proptest}; use proptest_arbitrary_interop::arb; use reth_db::{tables, test_utils::TempDatabase, DatabaseEnv}; diff --git a/crates/trie/db/tests/walker.rs b/crates/trie/db/tests/walker.rs index 19d5c5c32a98..5d8a5cc486ca 100644 --- a/crates/trie/db/tests/walker.rs +++ b/crates/trie/db/tests/walker.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_db::tables; use reth_db_api::{cursor::DbCursorRW, transaction::DbTxMut}; use reth_primitives::B256; diff --git a/crates/trie/trie/src/test_utils.rs b/crates/trie/trie/src/test_utils.rs index 0d0462be90f2..ba32b0532445 100644 --- a/crates/trie/trie/src/test_utils.rs +++ b/crates/trie/trie/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use alloy_primitives::{Address, B256, U256}; use alloy_rlp::encode_fixed_size; use reth_primitives::Account; diff --git a/testing/ef-tests/tests/tests.rs b/testing/ef-tests/tests/tests.rs index afbaa2e796e7..ee0d7bf95c2c 100644 --- a/testing/ef-tests/tests/tests.rs +++ b/testing/ef-tests/tests/tests.rs @@ -1,4 +1,5 @@ #![cfg(feature = "ef-tests")] +#![expect(missing_docs)] use ef_tests::{cases::blockchain_test::BlockchainTests, suite::Suite};