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

login
register
mail settings
Submitter phabricator
Date Sept. 24, 2019, 2:42 p.m.
Message ID <4ec3139cdd51f63f52d13209c99ca2bf@localhost.localdomain>
Download mbox | patch
Permalink /patch/41744/
State Not Applicable
Headers show

Comments

phabricator - Sept. 24, 2019, 2:42 p.m.
Closed by commit rHGf5ad85dd5f7e: examples: add sample fix integration for `rustfmt` (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/D6873?vs=16597&id=16599

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

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

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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