Patchwork D7812: examples: specify rustfmt nightly using a $() construct

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2020, 4:13 p.m.
Message ID <3a3832eb7057f03c08633f70754896ef@localhost.localdomain>
Download mbox | patch
Permalink /patch/44317/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2020, 4:13 p.m.
Closed by commit rHG6e13b31f83b5: examples: specify rustfmt nightly using a $() construct (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7812?vs=19087&id=19210

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7812/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7812

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: pulkit, quark, gracinet, mercurial-devel

Patch

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 -