Skip to content

Migrate to Rust edition 2024#540

Merged
reese merged 3 commits intotrunkfrom
reese-edition
Apr 14, 2025
Merged

Migrate to Rust edition 2024#540
reese merged 3 commits intotrunkfrom
reese-edition

Conversation

@reese
Copy link
Collaborator

@reese reese commented Apr 14, 2025

rubyfmt has always been on the 2018 edition, but getting on to the 2024 edition is mostly just a matter of adding some unsafe blocks (which I just accepted from the autocorrect) and then reformatting.

The impetus for this is mostly just that it fixes some issues in rustfmt that have always annoyed me (like the chained tuple formatting as foo.0 .1 with that awkward space), plus it'll make it easier for us to adopt features in future rust versions as they get stabilized.

@reese reese requested a review from froydnj April 14, 2025 17:15
Copy link
Collaborator

@froydnj froydnj left a comment

Choose a reason for hiding this comment

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

:whatyearisit:

@reese reese merged commit b36e3e3 into trunk Apr 14, 2025
7 checks passed
@reese reese deleted the reese-edition branch April 14, 2025 17:51
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