examples: add sample fix integration for `rustfmt`
authorAugie Fackler <augie@google.com>
Mon, 20 May 2019 14:37:38 -0400
changeset 42966 f5ad85dd5f7e
parent 42965 5dfb57af1148
child 42967 3609ea82b971
examples: add sample fix integration for `rustfmt` Differential Revision: https://phab.mercurial-scm.org/D6873
contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc	Mon May 20 14:33:46 2019 -0400
+++ b/contrib/examples/fix.hgrc	Mon May 20 14:37:38 2019 -0400
@@ -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