Skip to content

Commit 7c138e4

Browse files
committed
Add rustfmt configuration
We use `rustfmt` in this project to format code. However, if someone were to have his or her own local rustfmt configuration, that person's configuration would be in effect when running rustfmt on this project, potentially leading to inconsistent formatting. Let's add a `rustfmt.toml` file. That way, our own configuration will always be used, as per-project configuration overrides any per-user configuration. With the configuration we're adding in this commit, rustfmt does not make any changes when run.
1 parent cc59a6b commit 7c138e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rustfmt.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
edition = "2018"
2+
newline_style = "Unix"

0 commit comments

Comments
 (0)