mirror of
https://github.com/starship/starship.git
synced 2024-11-07 00:45:20 +01:00
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:
parent
26e4de710e
commit
c22ea6d889
5
.rustfmt.toml
Normal file
5
.rustfmt.toml
Normal 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.
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user