# HG changeset patch # User Martin von Zweigbergk # Date 2020-01-16 16:41:38 # Node ID 2077ffede71f4c37d755c3b7536ca00b9d9a9532 # Parent fdaa4233dc189f45bd21202fbf386fb64408429b 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: "). Differential Revision: https://phab.mercurial-scm.org/D7911 diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc --- a/contrib/examples/fix.hgrc +++ b/contrib/examples/fix.hgrc @@ -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 -