mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #336] [MERGED] fix: restore Clippy compatibility with Rust 1.99 #358
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/336
Author: @yingdi-shan
Created: 10/1/2026
Status: ✅ Merged
Merged: 10/1/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/rust-1.99-clippy📝 Commits (1)
1cc9e2ffix: restore Clippy compatibility with Rust 1.99📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
Cargo.lock(+3 -3)📝
storage/overlaybd/src/download_gate.rs(+1 -1)📄 Description
What
Fix
make clippyfailures with Rust 1.99.0 by updating the lockedasync-traitversion from 0.1.89 to 0.1.92 and replacingAtomicI64::fetch_updatewithtry_updatein the background download admission gate.Why
Rust 1.99's
clippy::double_must_usediagnoses the redundant#[must_use]attributes emitted by the oldasync-traitmacro, including in generated API traits. Version 0.1.92 no longer emits those attributes. Rust 1.99 also deprecatesfetch_updatein favor oftry_update. Both diagnostics fail the repository's-D warningscheck.Related issue
None; small toolchain compatibility fix.
Scope and non-goals
Only the async-trait lockfile entry and one atomic method call change. No generated code edits, lint suppressions, unrelated dependency updates, or toolchain pinning.
Design and behavior changes
The atomic operation retains the same closure, memory orderings, and result handling. The dependency update removes the redundant macro-generated attribute and uses the already-locked syn 3.0.4.
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results:
Clippy checked the whole workspace with all targets/features and
-D warnings. Cargo still reports an existing future-incompatibility notice for proc-macro-error2 2.0.1; it does not fail the target.Skipped checks and reasons:
Full unit/capability and VM integration suites were not run for this dependency/atomic API compatibility patch. The existing download-gate unit tests cover the changed call; Clippy compiles all workspace targets. Go checks, code generation, documentation changes, and benchmarks are not applicable.
Risks and reviewer notes
The dependency update affects async-trait expansions across the workspace. All targets compile under the strict Clippy check. The atomic rename preserves admission behavior and sequentially consistent ordering.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.