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.
This commit is contained in:
Travis Cross 2020-03-25 20:52:03 +00:00
parent cc59a6b700
commit 7c138e4b3b
1 changed files with 2 additions and 0 deletions

2
rustfmt.toml Normal file
View File

@ -0,0 +1,2 @@
edition = "2018"
newline_style = "Unix"