summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-08 21:21:08 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-08 18:35:26 -0700
commit038c5f0727a8d6f86d95932f06bf229f83b9ce6f (patch)
tree9126c8c14089477772f3e14c5724ce79ee3bef70
parent51380bf39936e0bcb1cb671bb20e961e1bb18e7d (diff)
Remove RUSTFMT_FLAGS
-rwxr-xr-xtools/format.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/format.py b/tools/format.py
index 4bdc0258b..f2d94a6f4 100755
--- a/tools/format.py
+++ b/tools/format.py
@@ -25,10 +25,5 @@ run(["yapf", "-i"] + find_exts("tools/", ".py") +
run(["node", prettier, "--write"] + find_exts("js/", ".js", ".ts") +
["rollup.config.js", "tsconfig.json", "tslint.json"])
-# Set RUSTFMT_FLAGS for extra flags.
-rustfmt_extra_args = []
-if 'RUSTFMT_FLAGS' in os.environ:
- rustfmt_extra_args += os.environ['RUSTFMT_FLAGS'].split()
# Requires rustfmt 0.8.2 (flags were different in previous versions)
-run(["rustfmt", "--config-path", rustfmt_config] + rustfmt_extra_args +
- find_exts("src/", ".rs"))
+run(["rustfmt", "--config-path", rustfmt_config] + find_exts("src/", ".rs"))