style: make rustfmt use the default configuration (#1661)

by adding an empty `rustfmt.toml` configuration file, thus allowing
users who have their own configuration to contribute without friction.
This commit is contained in:
Andrew 2020-09-19 08:45:17 +02:00 committed by GitHub
parent 26e4de710e
commit c22ea6d889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

5
.rustfmt.toml Normal file
View File

@ -0,0 +1,5 @@
# This file intentionally left almost blank
#
# The empty `rustfmt.toml` makes rustfmt use the default configuration,
# overriding any which may be found in the contributor's home or parent
# folders.

View File

@ -95,7 +95,7 @@ cargo clippy
## Formatting
Starship source files are formatted with [rustfmt](https://crates.io/crates/rustfmt-nightly). Rustfmt will be ran as part of CI. Unformatted code will fail a build, so it is suggested that you run rustfmt locally:
Starship source files are formatted with [rustfmt](https://crates.io/crates/rustfmt-nightly), using the default configuration. Rustfmt will be ran as part of CI. Unformatted code will fail a build, so it is suggested that you run rustfmt locally:
```sh
rustup component add rustfmt