changeset 44069:5e0505d36aee

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
author Augie Fackler <augie@google.com>
date Wed, 08 Jan 2020 14:37:01 -0500
parents 4b953cb17612
children 451d22174b5f
files contrib/examples/fix.hgrc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/examples/fix.hgrc	Sat Dec 07 13:13:48 2019 -0800
+++ b/contrib/examples/fix.hgrc	Wed Jan 08 14:37:01 2020 -0500
@@ -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 -