From 394b81de15bb158908607a0b3740dd6dbc438417 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 8 Feb 2019 19:50:52 -0800 Subject: [PATCH] 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. --- tools/rustfmt.toml => .rustfmt.toml | 0 tools/format.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename tools/rustfmt.toml => .rustfmt.toml (100%) diff --git a/tools/rustfmt.toml b/.rustfmt.toml similarity index 100% rename from tools/rustfmt.toml rename to .rustfmt.toml diff --git a/tools/format.ts b/tools/format.ts index 93cfd6ccb9..e5e0b4bf62 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") {