Skip to content

chore: migrate allow(clippy:: to expect(clippy::#23340

Merged
pepyakin merged 1 commit into
mainfrom
pep/allow-to-expect-clippy
Apr 2, 2026
Merged

chore: migrate allow(clippy:: to expect(clippy::#23340
pepyakin merged 1 commit into
mainfrom
pep/allow-to-expect-clippy

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 2, 2026

Replaces all #[allow(clippy::...)] with #[expect(clippy::...)] across 32 files. expect warns when the suppressed lint no longer fires, keeping annotations from going stale.

Removed 6 annotations where the lint was already gone (unfulfilled expectations):

  • clippy::too_many_arguments in engine/tree
  • clippy::useless_let_if_seq in ethereum/payload
  • clippy::missing_const_for_fn in net/peers (×2) and tasks
  • clippy::type_complexity in transaction-pool

Co-Authored-By: Sergei Shulepov 2205845+pepyakin@users.noreply.github.com

Prompted by: pep

Replaces all `#[allow(clippy::...)]` with `#[expect(clippy::...)]` so
clippy warns when a suppressed lint is no longer triggered. Removes 6
annotations where the lint was already gone.

Co-Authored-By: Sergei Shulepov <2205845+pepyakin@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4d23-5522-75eb-bf68-61b7e1340e64
@github-project-automation github-project-automation Bot moved this to Backlog in Reth Tracker Apr 2, 2026
@decofe decofe added the C-debt A clean up/refactor of existing code label Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
reth-chainspec: patch
reth-engine-tree: patch
reth-ethereum-payload-builder: patch
reth-execution-types: patch
reth-network: patch
reth-network-peers: patch
reth-node-builder: patch
reth-prune-types: patch
reth-ipc: patch
reth-rpc-eth-api: patch
reth-rpc-eth-types: patch
reth-rpc: patch
reth-libmdbx: patch
reth-provider: patch
reth-tasks: patch
reth-transaction-pool: patch
reth-trie-parallel: patch
example-exex-test: patch
example-txpool-tracing: patch
---

Migrated `allow(clippy::` attributes to `expect(clippy::` across multiple crates, and removed a few now-unnecessary suppression attributes.

Add changelog to commit this to your branch.

@github-project-automation github-project-automation Bot moved this from Backlog to In Progress in Reth Tracker Apr 2, 2026
@pepyakin pepyakin added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit 08a33da Apr 2, 2026
37 checks passed
@pepyakin pepyakin deleted the pep/allow-to-expect-clippy branch April 2, 2026 08:45
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Reth Tracker Apr 2, 2026
github-merge-queue Bot pushed a commit to tempoxyz/tempo that referenced this pull request Apr 3, 2026
Automated nightly update of reth dependencies from `paradigmxyz/reth`
main branch.

## Upstream reth changes


[`f8efc76...c82d435`](paradigmxyz/reth@f8efc76...c82d435)

🔗 Amp thread:
https://ampcode.com/threads/T-019d517e-981b-75fd-b3cf-8ad2455f38f6
**RPC**
- Remove `0x` prefix from `admin_peers` id and return keccak256 node ID
in `admin_nodeInfo.id` to match go-ethereum format
([#23318](paradigmxyz/reth#23318),
[#23319](paradigmxyz/reth#23319))
- Apply count filter only after `after` is consumed in pagination
([#23338](paradigmxyz/reth#23338))
- Pre-allocate vectors in `eth_feeHistory`
([#23334](paradigmxyz/reth#23334))
- Add `bal` RPC methods
([#23330](paradigmxyz/reth#23330))

**Engine**
- Include backpressure in reported `persistence_wait`, make wait-time
mimic CL slot time
([#23308](paradigmxyz/reth#23308))

**Perf**
- Reduce cacheline ping-pong in workers availability
([#23321](paradigmxyz/reth#23321))

**Net**
- Avoid itertools `Format` panic in tracing log
([#23331](paradigmxyz/reth#23331))

**DB**
- Cap `storage_v2` unwind history by MDBX tip
([#23335](paradigmxyz/reth#23335))

**Bench**
- Add warmup step for big blocks mode
([#23323](paradigmxyz/reth#23323))
- Make payload handling ethereum-only
([#23324](paradigmxyz/reth#23324))
- Use repository instead of GitHub Actions cache to track hourly runs
([#23306](paradigmxyz/reth#23306))
- Upload nightly regression results to ClickHouse
([#23344](paradigmxyz/reth#23344))

**Chore**
- Migrate `allow(clippy::` to `expect(clippy::`
([#23340](paradigmxyz/reth#23340))
- Remove unused return value from `dispatch_with_chunking`
([#23341](paradigmxyz/reth#23341))
- Update nixpkgs to 25.11 and refresh flake inputs
([#23342](paradigmxyz/reth#23342))

## Migrations

🔗 Amp thread:
https://ampcode.com/threads/T-019d517e-baf0-727b-a57e-0488240af973
- **Reth dependency bump**: All `reth-*` git dependencies updated from
rev `f8efc76` to `c82d435`
- **New `GetBlockAccessList` trait impl**: `TempoEthApi` now implements
`GetBlockAccessList` (imported from `reth_rpc_eth_api::helpers::bal`),
likely a new required trait added upstream in the reth update

[GitHub
Workflow](https://github.com/tempoxyz/tempo/actions/runs/23933027282)

---------

Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-debt A clean up/refactor of existing code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants