# HG changeset patch # User Augie Fackler # Date 1558377458 14400 # Node ID f5ad85dd5f7ea806611bac1058260312ddf7b44f # Parent 5dfb57af1148c4c5dcdad02b3fe4cd71b438aa6c examples: add sample fix integration for `rustfmt` Differential Revision: https://phab.mercurial-scm.org/D6873 diff -r 5dfb57af1148 -r f5ad85dd5f7e 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