Skip to content

Apply first set of Rustfmt edition 2024 changes#13478

Merged
charliermarsh merged 1 commit intomainfrom
konsti/cargo-fmt-2024-1
May 17, 2025
Merged

Apply first set of Rustfmt edition 2024 changes#13478
charliermarsh merged 1 commit intomainfrom
konsti/cargo-fmt-2024-1

Conversation

@konstin
Copy link
Member

@konstin konstin commented May 15, 2025

Rustfmt introduces a lot of formatting changes in the 2024 edition. To not break everything all at once, we split out the set of formatting changes compatible with both the 2021 and 2024 edition by first formatting with the 2024 style, and then again with the currently used 2021 style.

Notable changes are the formatting of derive macro attributes and lines with overly long strings and adding trailing semicolons after statements consistently.

Rustfmt introduces a lot of formatting changes in the 2024 edition. To not break everything all at once, we split out the set of formatting changes compatible with both the 2021 and 2024 edition by first formatting with the 2024 style, and then again with the currently used 2021 style.

Notable changes are the formatting of derive macro attributes and trailing semicolons in more places.
@konstin konstin added the internal A refactor or improvement that is not user-facing label May 15, 2025
@konstin konstin temporarily deployed to uv-test-publish May 15, 2025 19:35 — with GitHub Actions Inactive
@charliermarsh charliermarsh merged commit 5d37c7e into main May 17, 2025
86 checks passed
@charliermarsh charliermarsh deleted the konsti/cargo-fmt-2024-1 branch May 17, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants