From 394b81de15bb158908607a0b3740dd6dbc438417 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 8 Feb 2019 19:50:52 -0800 Subject: 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/format.ts | 2 +- tools/rustfmt.toml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 tools/rustfmt.toml (limited to 'tools') 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") { diff --git a/tools/rustfmt.toml b/tools/rustfmt.toml deleted file mode 100644 index faa3d5a33..000000000 --- a/tools/rustfmt.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -max_width = 80 -tab_spaces = 2 -- cgit v1.2.3