Patchwork D6873: examples: add sample fix integration for `rustfmt`

login
register
mail settings
Submitter phabricator
Date Sept. 23, 2019, 7:42 p.m.
Message ID <differential-rev-PHID-DREV-ndy5fcueoswpsbzfqihu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41742/
State Superseded
Headers show

Comments

phabricator - Sept. 23, 2019, 7:42 p.m.
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

Patch

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