Skip to content

fix(deps): bump async-trait to 0.1.92 for clippy 1.99 - #179

Merged
lym953 merged 1 commit into
mainfrom
yiming.luo/bump-async-trait
Oct 8, 2026
Merged

lym953 merged 1 commit into
mainfrom
yiming.luo/bump-async-trait

Conversation

@lym953

@lym953 lym953 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Bumps async-trait from 0.1.89 to 0.1.92 in Cargo.lock.

Motivation

What changed: the GitHub runner image ubuntu-24.04-arm moved from version 20260927.135 to 20261004.142, which updates Rust from 1.98.1 to 1.99.0. The Clippy job uses the Rust of the runner image. The windows-2022 job fails with the same 9 errors, but I did not check the Rust version of its image.

The problem: Clippy 1.99 has the lint double_must_use. It flags the code that async-trait 0.1.89 generates for each #[async_trait] trait. The job runs cargo clippy --workspace --all-features -- -D warnings, so datadog-trace-agent fails to compile with 9 errors. The Clippy jobs on ubuntu-24.04-arm and windows-2022 fail on every PR, for example #178. main will fail the same way on its next run.

The fix: async-trait 0.1.92 changes the generated code so that the lint does not apply (dtolnay/async-trait#303).

Additional Notes

  • async-trait 0.1.92 uses syn 3, so Cargo.lock adds syn 3.0.6. The syn 2 entry stays for the other crates.
  • cargo update also moves rustls from 0.23.45 to 0.23.44. The manifests cap rustls below 0.23.45, but the lock file on main has 0.23.45. CI's Clippy run does not use --locked, so it already makes this same change before it builds.

Describe how to test/QA your changes

  1. Install Rust 1.99.0 with rustup toolchain install 1.99.0 --profile minimal -c clippy.
  2. Run cargo +1.99.0 clippy --workspace --all-features -- -D warnings on main and on this branch.
Check main This branch
Clippy 1.99 errors 9 double_must_use errors in datadog-trace-agent 0
Exit code failure 0

I ran this on macOS arm64 only. The CI run on this PR checks the Linux and Windows jobs.

🤖 Generated with Claude Code

Rust 1.99.0 reached the GitHub runner images, and its clippy flags
double_must_use in code that async-trait 0.1.89 generates. Clippy runs
with -D warnings, so datadog-trace-agent fails to compile. async-trait
0.1.92 fixes the generated code (dtolnay/async-trait#303).

cargo also moves rustls from 0.23.45 to 0.23.44, because the manifests
cap rustls below 0.23.45. CI's unlocked clippy run makes the same change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lym953
lym953 marked this pull request as ready for review October 7, 2026 20:14
@lym953
lym953 requested review from a team as code owners October 7, 2026 20:14
@lym953
lym953 requested review from Lewis-E and duncanista and a balanced review from Copilot and removed request for a team and Copilot October 7, 2026 20:14
@lym953
lym953 merged commit c26fbc7 into main Oct 8, 2026
27 checks passed
@lym953
lym953 deleted the yiming.luo/bump-async-trait branch October 8, 2026 16:32
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.

2 participants