Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rust 2024 edition #913

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Update to Rust 2024 edition #913

merged 1 commit into from
Feb 24, 2025

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Feb 24, 2025

Updates to the Rust 2024 edition, which is now available as of Rust 1.85:

Most changes were applied via either cargo clippy --fix or cargo fmt with the exception of a failure for the new obfuscated_if_else:
https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else

I've also dropped the module_name_repetitions lint rule allow, since that lint is no longer part of clippy::pedantic due to being too noisy, so we no longer need to manually disable it.

GUS-W-17894359.

Updates to the Rust 2024 edition, which is now available as of Rust 1.85:

- https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html
- https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html
- https://doc.rust-lang.org/edition-guide/rust-2024/index.html

Most changes were applied via either `cargo clippy --fix` or `cargo fmt`
with the exception of a failure for the new `obfuscated_if_else`:
https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else

I've also dropped the `module_name_repetitions` lint rule allow, since
that lint is no longer part of `clippy::pedantic` due to being too noisy,
so we no longer need to manually disable it.

GUS-W-17894359.
@edmorley edmorley marked this pull request as ready for review February 24, 2025 10:27
@edmorley edmorley requested a review from a team as a code owner February 24, 2025 10:27
@edmorley edmorley merged commit 59d08c9 into main Feb 24, 2025
4 checks passed
@edmorley edmorley deleted the edmorley/rust-2024 branch February 24, 2025 11:08
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