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

rustfmt.toml or .rustfmt.toml #371

Closed
sdavids opened this issue Feb 27, 2025 · 1 comment · Fixed by #372
Closed

rustfmt.toml or .rustfmt.toml #371

sdavids opened this issue Feb 27, 2025 · 1 comment · Fixed by #372

Comments

@sdavids
Copy link

sdavids commented Feb 27, 2025

https://doc.rust-lang.org/edition-guide/rust-2024/rustfmt-style-edition.html

The style edition can also be set in a rustfmt.toml configuration file […]

Projects who have contributors that may utilize their editor's format-on-save features are also strongly encouraged to add a .rustfmt.toml file to their project […]

rustfmt.toml vs. .rustfmt.toml

For consistency, only one should be mentioned in this guide.

Alternatively, the first sentence should be updated to mention both variants.

ehuss added a commit to ehuss/edition-guide that referenced this issue Feb 27, 2025
I don't know if one or the other is really preferred, but I figure the
reader can decide for themselves.

Closes rust-lang#371
@ehuss
Copy link
Contributor

ehuss commented Feb 27, 2025

Yea, mentioning both seems good, I opened #372

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 a pull request may close this issue.

2 participants