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 configuration #45

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

Kijewski
Copy link
Collaborator

@Kijewski Kijewski commented Jul 4, 2024

This PR configures the formatting with a few defaults that aid readability, in my opinion. One drawback of adding this file is that rustfmt uses unstable features, now, and you have to use nightly to run it:

cargo +nightly fmt --all

This PR configures the formatting with a few defaults that aid
readability, in my opinion. One drawback of adding this file is that
rustfmt uses unstable features, now, and you have to use nightly to run
it:

```sh
cargo +nightly fmt --all
```
@Kijewski
Copy link
Collaborator Author

Kijewski commented Jul 4, 2024

This PR is quite opinionated. It's totally OK if you don't like it or if you would use other settings. :)

@GuillaumeGomez
Copy link
Contributor

I like it, just hope it won't make things too difficult for contributors. Well, we'll see. Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 83ef00c into rinja-rs:master Jul 4, 2024
17 checks passed
@Kijewski Kijewski deleted the pr-rustfmt branch July 4, 2024 09:06
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