summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDany Marcoux <dmarcoux@posteo.de>2022-05-23 17:04:50 +0200
committerGitHub <noreply@github.com>2022-05-23 11:04:50 -0400
commit24c21dc9aed80c61ed9bdb72d9597cfbe66fcfaf (patch)
treea36f3b9089aba702c867c2e0584dbcbd02787ba8
parentd8d95d572a1723bda4bd32b9fa17ce6dd6a22bb6 (diff)
Use rustfmt defaults (#174)
Without this file, rustfmt's configuration might be coming from a developer's global configuration for rustfmt. To ensure consistency, we define an empty rustfmt configuration. This is explained upstream: > Rustfmt is designed to be very configurable. You can create a TOML file called `rustfmt.toml` or `.rustfmt.toml`, place it in the project or any other parent directory and it will apply the options in that file. If none of these directories contain such a file, both your home directory and a directory called `rustfmt` in your [global config directory](https://docs.rs/dirs/1.0.4/dirs/fn.config_dir.html) (e.g. `.config/rustfmt/`) are checked as well.
-rw-r--r--rustfmt.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..feeb82e
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1 @@
+# Using defaults as defined at https://github.com/rust-lang/rustfmt/blob/master/Configurations.md