From 025d278827d8104271101261c12fa8672bdf05ac Mon Sep 17 00:00:00 2001 From: core Date: Mon, 27 Nov 2023 11:02:40 -0500 Subject: [PATCH] update precommit again --- .git-hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 1cc310dca2d158c2951ffda63b8b044b4fd8ae46..cb30bce819e7cbb729b0ad070ff0e5527140c6df 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -6,7 +6,7 @@ HAS_ISSUES=0 FIRST_FILE=1 for file in $(git diff --name-only --staged); do - FMT_RESULT="$(rustfmt --skip-children --force --write-mode diff $file 2>/dev/null || true)" + FMT_RESULT="$(rustfmt --edition 2021 --skip-children --force --write-mode diff $file 2>/dev/null || true)" if [ "$FMT_RESULT" != "" ]; then if [ $FIRST_FILE -eq 0 ]; then echo -n ", "