# HG changeset patch # User Augie Fackler # Date 2020-01-08 19:37:01 # Node ID 5e0505d36aee3d7ce2286426c9b2897ed646c9ca # Parent 4b953cb176125d6d0952fe61a2d9f7042904ab19 examples: specify rustfmt nightly using a $() construct This is ugly, but it's how we have to configure rustfmt for now as we require nightly rustfmt. Differential Revision: https://phab.mercurial-scm.org/D7812 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 = rustfmt +rustfmt:command = $(rustup which --toolchain nightly rustfmt) rustfmt:pattern = set:**.rs black:command = black --config=black.toml -