diff --git a/hooks/pre-commit b/hooks/pre-commit index a93bf91..ac1bea9 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -93,7 +93,7 @@ diff="" for file in $(git diff --name-only --cached); do if [ ${file: -3} == ".rs" ]; then - diff="$diff$(cargo fmt -- --skip-children --write-mode=diff $file)" + diff="$diff$(cargo fmt -- --unstable-features --skip-children --check $file)" fi done if grep --quiet "^[-+]" <<< "$diff"; then