alamb opened a new pull request, #799: URL: https://github.com/apache/arrow-rs-object-store/pull/799
# Which issue does this PR close? Closes #798. # Rationale for this change Clippy started failing on `main` after the release of Rust 1.97.0, which added the [`useless_borrows_in_formatting`](https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting) lint. This flags redundant `&` references in `format!` arguments in the azure module. To avoid being surprised by new lints in future toolchain releases (and to make CI reproducible), this PR also pins the Rust toolchain, mirroring the approach used in [apache/arrow-rs](https://github.com/apache/arrow-rs/blob/main/rust-toolchain.toml). # What changes are included in this PR? 1. Add a `rust-toolchain.toml` pinning the toolchain to `1.97.0` (the latest stable) with the `rustfmt` and `clippy` components, mirroring the structure used in `apache/arrow-rs`. 2. Fix the `useless_borrows_in_formatting` clippy failures by removing the redundant `&` in `format!` arguments in `src/azure/builder.rs` and `src/azure/credential.rs` (comment alignment restored by `cargo fmt`). All clippy invocations from CI now pass locally on 1.97.0. # Are there any user-facing changes? No. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
