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

Add .rustfmt.toml to configure Rustfmt. #222

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

mawallace
Copy link
Contributor

An empty .rustfmt.toml file will configure Rustfmt with the default settings (which seems to match how the project is formatted).

Without this, Rustfmt will

  1. Look for configuration in parent directories (which will likely exist if someone has vendored this dependency); or
  2. Look for global configuration

If either exist, it makes it more difficult to contribute to this project, since IDEs will auto-format according to that config and create spurious changes.

@oscartbeaumont oscartbeaumont merged commit f75a1b7 into specta-rs:main Mar 21, 2024
1 of 4 checks passed
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