diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-02-08 19:50:52 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-02-08 20:06:21 -0800 |
commit | 394b81de15bb158908607a0b3740dd6dbc438417 (patch) | |
tree | 043bc941eb0021b5fa05e7ff65c1a83a0438acbc | |
parent | 526497bc29faaf99354ee5d1628e8681d6604736 (diff) |
Move .rustfmt.toml to the repository root
This allows rustfmt to automatically pick it up.
It's right there with similar files such as .prettierrc.
-rw-r--r-- | .rustfmt.toml (renamed from tools/rustfmt.toml) | 0 | ||||
-rwxr-xr-x | tools/format.ts | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/rustfmt.toml b/.rustfmt.toml index faa3d5a33..faa3d5a33 100644 --- a/tools/rustfmt.toml +++ b/.rustfmt.toml diff --git a/tools/format.ts b/tools/format.ts index 93cfd6ccb..e5e0b4bf6 100755 --- a/tools/format.ts +++ b/tools/format.ts @@ -8,7 +8,7 @@ const clangFormat = join("third_party", "depot_tools", "clang-format"); const gn = join("third_party", "depot_tools", "gn"); const yapf = join("third_party", "python_packages", "bin", "yapf"); const rustfmt = join("third_party", "rustfmt", deno.platform.os, "rustfmt"); -const rustfmtConfig = join("tools", "rustfmt.toml"); +const rustfmtConfig = ".rustfmt.toml"; const run = (...args: string[]) => { if (deno.platform.os === "win") { |