From patchwork Mon Sep 23 19:42:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6873: examples: add sample fix integration for `rustfmt` From: phabricator X-Patchwork-Id: 41742 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 23 Sep 2019 19:42:17 +0000 durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6873 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 @@ -1,3 +1,6 @@ [fix] clang-format:command = clang-format --style file -i clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist" + +rustfmt:command = rustfmt {rootpath} +rustfmt:pattern = set:**.rs