Skip to content

Remove rustfmt.toml, update rustfmt lint to 2024 edition #2122

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

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

apiraino
Copy link
Contributor

@apiraino apiraino commented Jul 23, 2025

From comment.

I'm curious to see what happens if we remove the rustfmt.toml file that is forcing code linting to edition 2018. Running cargo fmt locally and picking the edition (2024) from Cargo.toml does not produce any linting errors.

Let's see here what says the CI ...

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks!

@Kobzol Kobzol enabled auto-merge July 23, 2025 12:40
@Kobzol Kobzol added this pull request to the merge queue Jul 23, 2025
@apiraino
Copy link
Contributor Author

oh ok, that was fast :^)

@ehuss
Copy link
Contributor

ehuss commented Jul 23, 2025

I would recommend keeping this file, but updating it to 2024. Some editors call rustfmt directly, but that tool is unaware of Cargo.toml, and thus defaults to 2015.

Merged via the queue into rust-lang:master with commit b3908c7 Jul 23, 2025
3 checks passed
@apiraino
Copy link
Contributor Author

ah sorry I didn't consider that! Thanks for the suggestion Eric, let me fix this

@apiraino apiraino deleted the remove-rustfmt-toml branch August 5, 2025 13:44
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.

3 participants