examples: refer to nightly rustfmt in Windows-compatible way
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 16 Jan 2020 08:41:38 -0800
changeset 44103 2077ffede71f
parent 44102 fdaa4233dc18
child 44104 85c4cd73996b
examples: refer to nightly rustfmt in Windows-compatible way Thanks to Jun Wu for the tip. I found that the new form also gave better error messages when the nightly rustfmt wasn't installed (it told me which command to run instead of just saying "error: not a file: <some path>"). Differential Revision: https://phab.mercurial-scm.org/D7911
contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc	Thu Dec 26 19:05:55 2019 +0100
+++ b/contrib/examples/fix.hgrc	Thu Jan 16 08:41:38 2020 -0800
@@ -2,7 +2,7 @@
 clang-format:command = clang-format --style file
 clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"
 
-rustfmt:command = $(rustup which --toolchain nightly rustfmt)
+rustfmt:command = rustfmt +nightly
 rustfmt:pattern = set:**.rs
 
 black:command = black --config=black.toml -