Skip to content

fix(clippy): remove redundant borrows flagged by CI lint - #5

Closed
NickmDrummer wants to merge 1 commit into
omeyenburg:mainfrom
NickmDrummer:fix/clippy-useless-borrows
Closed

NickmDrummer wants to merge 1 commit into
omeyenburg:mainfrom
NickmDrummer:fix/clippy-useless-borrows

Conversation

@NickmDrummer

Copy link
Copy Markdown
Contributor

Problem

The CI lint job (cargo clippy --all-targets --all-features -- -D warnings) fails on current main with 3x useless_borrows_in_formatting errors in build_instruction_hover_info (src/lang.rs). This is pre-existing code flagged by newer clippy versions, unrelated to #4.

Changes

  • src/lang.rs: drop redundant & in 3 format! args.

Verified

  • cargo fmt --all -- --check passes.
  • cargo clippy --all-targets --all-features -- -D warnings passes.
  • cargo test: 17 passed, 0 failed.

Fixes useless_borrows_in_formatting warnings flagged by
cargo clippy -- -D warnings (CI lint job).
@omeyenburg

Copy link
Copy Markdown
Owner

oh i just fixed it too

@omeyenburg omeyenburg closed this Oct 8, 2026
@NickmDrummer
NickmDrummer deleted the fix/clippy-useless-borrows branch October 8, 2026 20:28
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