Mercurial > hg-stable
changeset 42968:f5ad85dd5f7e
examples: add sample fix integration for `rustfmt`
Differential Revision: https://phab.mercurial-scm.org/D6873
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 20 May 2019 14:37:38 -0400 |
parents | 5dfb57af1148 |
children | 3609ea82b971 |
files | contrib/examples/fix.hgrc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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