From patchwork Wed Jan 8 19:38:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7812: examples: specify rustfmt nightly using a $() construct From: phabricator X-Patchwork-Id: 44192 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 8 Jan 2020 19:38:14 +0000 durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This is ugly, but it's how we have to configure rustfmt for now as we require nightly rustfmt. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D7812 AFFECTED FILES contrib/examples/fix.hgrc CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel 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 -