Repository navigation
fix(ci): drop redundant reference in format! arg (clippy 0.1.97 gate) - #93
Conversation
CI rolling `stable` bumped to rustc/clippy 1.97.0 (2026-07-07), whose
"redundant reference in `format!` argument" lint fails the `cargo clippy
--all-targets -- -D warnings` gate on the pre-existing
`format!("Tool call missing name: {}", &raw_content)` in tools/mod.rs.
Inline the captured identifier (`{raw_content}`) — `raw_content` is still
moved into the struct field on the next line, so behavior is unchanged.
Verified green under the exact CI toolchain (clippy 0.1.97): local
`cargo clippy -p mlx-core --all-targets -- -D warnings` finishes clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_2865ca3f-889f-423a-8b93-38e04caba000) |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
CI's rolling
stabletoolchain bumped to rustc/clippy 1.97.0 (2026-07-07), which added the "redundant reference informat!argument" lint. That trips the existingcargo clippy --all-targets -- -D warningsgate on a pre-existing line incrates/mlx-core/src/tools/mod.rs:This is what turned the Rust Lint → Clippy job red on
main(first failure on #89, then the #90 merge — run29022183758). The code itself dates back to #64; nothing on #90 touched it — a toolchain bump surfaced it.Fix
Inline the captured identifier:
raw_contentis still moved into the struct field on the next line, so behavior is unchanged.Verification
Reproduced the CI toolchain locally (
rustup update stable→ clippy0.1.97 (2d8144b788 2026-07-07)) and ran the exact gate:Only remaining output is the pre-existing
block v0.1.6future-incompat note (present on all green runs; not a-D warningsfailure).🤖 Generated with Claude Code
Note
Low Risk
One-line formatting change in an error message path; no logic or API changes.
Overview
Unblocks Rust Lint → Clippy on CI after clippy 0.1.97 started enforcing the redundant-reference-in-
format!lint under-D warnings.In
ToolCallResult::missing_name, the error string now uses inline capture ({raw_content}) instead of{}", &raw_content. The message and move semantics are unchanged.Reviewed by Cursor Bugbot for commit 44cc4cd. Bugbot is set up for automated code reviews on this repo. Configure here.