summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-05 18:28:05 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-08 18:35:26 -0700
commit4a1ccdeadb44983b8966c4623f10c5a665a39517 (patch)
treeba065571e375e2e68b0c78a7fdb1babab1758941
parent7895964ee1ea6802f313359262d75b1bd3249f45 (diff)
Change rustfmt flags. For v0.8.2.
-rwxr-xr-xtools/format.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/format.py b/tools/format.py
index c25a78051..4bdc0258b 100755
--- a/tools/format.py
+++ b/tools/format.py
@@ -29,7 +29,6 @@ run(["node", prettier, "--write"] + find_exts("js/", ".js", ".ts") +
rustfmt_extra_args = []
if 'RUSTFMT_FLAGS' in os.environ:
rustfmt_extra_args += os.environ['RUSTFMT_FLAGS'].split()
-run([
- "rustfmt", "--config-path", rustfmt_config, "--error-on-unformatted",
- "--write-mode", "overwrite"
-] + rustfmt_extra_args + find_exts("src/", ".rs"))
+# Requires rustfmt 0.8.2 (flags were different in previous versions)
+run(["rustfmt", "--config-path", rustfmt_config] + rustfmt_extra_args +
+ find_exts("src/", ".rs"))