Skip to content

chore: drop needless borrows flagged by clippy 1.97 - #457

Merged
andrius-puksta-sensmetry merged 2 commits into
sensmetry:mainfrom
consideRatio:style/clippy-197-needless-borrows
Jul 20, 2026
Merged

chore: drop needless borrows flagged by clippy 1.97#457
andrius-puksta-sensmetry merged 2 commits into
sensmetry:mainfrom
consideRatio:style/clippy-197-needless-borrows

Conversation

@consideRatio

@consideRatio consideRatio commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Clippy with Rust 1.97 makes a few fixes, and currenty prek in our CI system makes use of Rust 1.97 even though we mean to have us pinned to 1.96. This is fixed by #454. However, this PR applies the things clippy 1.97 did.

@consideRatio consideRatio changed the title style: drop needless borrows flagged by clippy 1.97 chore: drop needless borrows flagged by clippy 1.97 Jul 19, 2026
consideRatio and others added 2 commits July 20, 2026 08:55
The prek CI job runs a newer clippy than the 1.96 pinned by
rust-toolchain.toml and its --fix pass rewrote three pre-existing
needless borrows (in format!/log macro arguments), failing the hook
with 'files were modified'. Apply those three one-line fixes so the
hook is a no-op on both clippy versions. Pre-existing code, not part
of the credential work; upstream may want to align the prek job's
toolchain with rust-toolchain.toml separately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfyrkJkeo3mRngVoppJjUN
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
Completes the previous drift commit: running the prek hook's exact
clippy command under the CI runner's actual toolchain (1.97, released
2026-07-14) locally flushes the full fix set at once instead of
discovering one file per CI round. A second 1.97 pass is now a no-op.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfyrkJkeo3mRngVoppJjUN
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
@consideRatio
consideRatio force-pushed the style/clippy-197-needless-borrows branch from 44e69cc to e7f58cb Compare July 20, 2026 06:56
@andrius-puksta-sensmetry
andrius-puksta-sensmetry merged commit f2a010e into sensmetry:main Jul 20, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants