Skip to content

Fix clippy::useless_borrows_in_formatting lint errors (Rust 1.97) - #6

Merged
mgugger merged 2 commits into
mainfrom
copilot/fix-lint-job-failure
Jul 21, 2026
Merged

mgugger merged 2 commits into
mainfrom
copilot/fix-lint-job-failure

Conversation

Copilot AI commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Rust 1.97 introduced the clippy::useless_borrows_in_formatting lint, which is promoted to an error via -D warnings in CI. This broke the lint job across multiple files that used redundant & references in write! macro arguments.

Changes

  • examples/azure_auth/entity/ — Remove redundant & from write! args in comment.rs and post.rs
  • examples/basic/entity/ — Same fix in comment.rs and user.rs
  • tests/test_setup/ — Same fix in comment.rs, post.rs, and sample_with_tenant_id.rs
// Before
_ => write!(formatter, "{} {}", &self.insert_date, &self.user),

// After
_ => write!(formatter, "{} {}", self.insert_date, self.user),

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'lint' Fix clippy::useless_borrows_in_formatting lint errors (Rust 1.97) Jul 21, 2026
Copilot AI requested a review from mgugger July 21, 2026 06:59
@mgugger
mgugger marked this pull request as ready for review July 21, 2026 08:52
@mgugger
mgugger merged commit 321356a into main Jul 21, 2026
2 of 3 checks passed
@mgugger
mgugger deleted the copilot/fix-lint-job-failure branch July 21, 2026 08:52
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