summaryrefslogtreecommitdiff
path: root/tools/format.py
diff options
context:
space:
mode:
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"))