diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
index 5dfb57af1148c4c5dcdad02b3fe4cd71b438aa6c_Y29udHJpYi9leGFtcGxlcy9maXguaGdyYw==..f5ad85dd5f7ea806611bac1058260312ddf7b44f_Y29udHJpYi9leGFtcGxlcy9maXguaGdyYw== 100644
--- 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