Skip to content

chore: fix clippy(beta) error#6266

Open
ackintosh wants to merge 3 commits intolibp2p:masterfrom
ackintosh:fix-ci-errors
Open

chore: fix clippy(beta) error#6266
ackintosh wants to merge 3 commits intolibp2p:masterfrom
ackintosh:fix-ci-errors

Conversation

@ackintosh
Copy link
Contributor

@ackintosh ackintosh commented Feb 5, 2026

Description

https://github.com/libp2p/rust-libp2p/actions/runs/21696896538/job/62568845676?pr=6264

error: the Err-variant returned from this closure is very large
Error: --> swarm/src/connection/pool.rs:692:41

ref: result_large_err

Allowed result_large_err since the Result returned by the closure is consumed immediately, so the large error variant is never propagated across stack frames.

Also, I updated the autonatv2 example to fix a cargo-deny error caused by the deprecation of the opentelemetry-jaeger crate. It has been migrated to opentelemetry-otlp. And I verified that the example works as expected (see the screenshot below).

image

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

https://rust-lang.github.io/rust-clippy/beta/index.html#result_large_err

The `Result` is consumed immediately below so the large error variant is never propagated across stack frames.
@ackintosh ackintosh closed this Feb 5, 2026
@ackintosh ackintosh reopened this Feb 5, 2026
@elenaf9 elenaf9 changed the title Fix clippy(beta) error chore: fix clippy(beta) error Feb 5, 2026
 - Remove deprecated 'version' field (obsolete in
  Compose V2)
- Quote port mappings to follow YAML best practices
@ackintosh ackintosh marked this pull request as ready for review February 6, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant