Skip to content

Fix clippy 1.97 useless_borrows_in_formatting lint - #112

Merged
thibmeu merged 1 commit into
cloudflare:mainfrom
thibmeu:fix-clippy-1.97
Jul 19, 2026
Merged

Fix clippy 1.97 useless_borrows_in_formatting lint#112
thibmeu merged 1 commit into
cloudflare:mainfrom
thibmeu:fix-clippy-1.97

Conversation

@thibmeu

@thibmeu thibmeu commented Jul 19, 2026

Copy link
Copy Markdown
Member

Rust 1.97's clippy added useless_borrows_in_formatting, which flags two redundant & references in format! arguments in crates/web-bot-auth/src/components.rs. Since CI runs cargo clippy -- -D warnings on stable, this fails the Test Rust job on every PR (e.g. #109, which is otherwise unrelated).

This removes the two redundant borrows. cargo clippy --all-features --all-targets -- -D warnings passes locally on 1.97.

Remove redundant references in format! arguments that the new
useless_borrows_in_formatting lint flags, which was failing CI
on all PRs.
@thibmeu thibmeu self-assigned this Jul 19, 2026
@thibmeu thibmeu added the bug Something isn't working label Jul 19, 2026
@thibmeu
thibmeu requested a review from AkshatM July 19, 2026 12:42
@thibmeu
thibmeu merged commit fbf81d8 into cloudflare:main Jul 19, 2026
8 of 9 checks passed
@thibmeu
thibmeu deleted the fix-clippy-1.97 branch July 19, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

1 participant