Skip to content

Commit c22ea6d

Browse files
authored
style: make rustfmt use the default configuration (starship#1661)
by adding an empty `rustfmt.toml` configuration file, thus allowing users who have their own configuration to contribute without friction.
1 parent 26e4de7 commit c22ea6d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.rustfmt.toml

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

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ cargo clippy
9595

9696
## Formatting
9797

98-
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:
98+
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:
9999

100100
```sh
101101
rustup component add rustfmt

0 commit comments

Comments
 (0)