-
Notifications
You must be signed in to change notification settings - Fork 0
add rustfmt.toml #180
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
base: main
Are you sure you want to change the base?
add rustfmt.toml #180
Conversation
But this means you configured your system away from the standard configuration? FWIW I never had any issues with formatting in any Rust codebase except when working with the polkadot-sdk. Can you elaborate a bit more why this is required? |
I see, very unexpected to me that Really don't get it. Running the formatter on main creates no changes. In your PR branch it re-formats (otherwise untouched) files. Not sure what's going on and why. Just ape it in. |
yeah by default rustfmt preserve local style which is not great when multiple people work on a project with different version config of rustfmt |
Copying the fmt from polkadot-sdk, without a sane configuration, rustfmt preserve local style which can produce a lot of unnecessary formatting diff