Skip to content

Pin Rust toolchain to 1.97.0 and fix clippy#799

Merged
alamb merged 1 commit into
apache:mainfrom
alamb:pin-rust-toolchain-1.97
Jul 10, 2026
Merged

Pin Rust toolchain to 1.97.0 and fix clippy#799
alamb merged 1 commit into
apache:mainfrom
alamb:pin-rust-toolchain-1.97

Conversation

@alamb

@alamb alamb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Clippy started failing on main after the release of Rust 1.97.0,

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.

What changes are included in this PR?

  1. Add a rust-toolchain.toml pinning the toolchain to 1.97.0
  2. Fix the clippy failures

Are there any user-facing changes?

No.

…ting

Adds a rust-toolchain.toml (mirroring apache/arrow-rs) pinning the
toolchain to 1.97.0 so CI uses a stable, reproducible Rust version and
is not surprised by new lints in future releases.

Rust 1.97.0's clippy added the useless_borrows_in_formatting lint, which
flags redundant references in format! arguments. Fixes the resulting
failures in the azure module.

Closes apache#798

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alamb alamb changed the title Pin Rust toolchain to 1.97.0 and fix clippy useless_borrows_in_formatting Pin Rust toolchain to 1.97.0 and fix clippy Jul 10, 2026
Comment thread rust-toolchain.toml
# under the License.

[toolchain]
channel = "1.97.0"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alamb
alamb marked this pull request as ready for review July 10, 2026 12:37
@alamb

alamb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

I am going to merge this to get the CI clean and prepare the releaes

@alamb
alamb merged commit e64e8e3 into apache:main Jul 10, 2026
9 checks passed
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.

Clippy failing on main

1 participant