changeset 43502:c093cc6e6c99

formatting: remove another data-ogre from the config example The fix extension will pass the contents on stdin and read the output from stdout. By invoking `rustfmt` as `rustfmt {rootpath}`, we tell rustfmt to format the given path and update it on disk. That also makes rustftm not produce the formatted output to stdout. So the fix extension ends up writing out empty files. Differential Revision: https://phab.mercurial-scm.org/D7304
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 07 Nov 2019 03:59:22 -0800
parents b2f95f9d3588
children 313e3a279828
files contrib/examples/fix.hgrc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/examples/fix.hgrc	Thu Nov 07 03:46:48 2019 -0800
+++ b/contrib/examples/fix.hgrc	Thu Nov 07 03:59:22 2019 -0800
@@ -2,7 +2,7 @@
 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:command = rustfmt
 rustfmt:pattern = set:**.rs
 
 black:command = black --config=black.toml -