summaryrefslogtreecommitdiff
path: root/tools/format.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-19 19:15:14 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-20 01:19:59 -0400
commit00884d7164ce7322b9e627051b65887f9f2c817d (patch)
treebf645634ae263a338e334a1748d3bb0c1f9d092b /tools/format.py
parent09e011b3890af1525f27b788da63b09d8e874604 (diff)
Add rustfmt to third_party.
Diffstat (limited to 'tools/format.py')
-rwxr-xr-xtools/format.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/format.py b/tools/format.py
index cf03ccca3..0dc100b9f 100755
--- a/tools/format.py
+++ b/tools/format.py
@@ -3,7 +3,7 @@
from glob import glob
import os
from third_party import third_party_path, fix_symlinks, google_env, clang_format_path
-from util import root_path, run, find_exts
+from util import root_path, run, find_exts, platform
fix_symlinks()
@@ -39,5 +39,7 @@ run(["node", prettier, "--write"] +
find_exts("website/", ".js", ".ts", ".md"))
# yapf: enable
-# Requires rustfmt 0.8.2 (flags were different in previous versions)
-run(["rustfmt", "--config-path", rustfmt_config] + find_exts("src/", ".rs"))
+run([
+ "third_party/rustfmt/" + platform() +
+ "/rustfmt", "--config-path", rustfmt_config
+] + find_exts("src/", ".rs"))