We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b87ab5c + 559b2f8 commit d3f78d6Copy full SHA for d3f78d6
pre_publish.sh
@@ -4,20 +4,19 @@ set -e
4
5
./util/update_lints.py
6
7
-git status --short | sort | grep -v README.md | grep -v helper.txt | sort > helper.txt
8
-
9
-# abort if the files differ
10
-diff "publish.files" "helper.txt"
11
12
-rm helper.txt
13
14
# add all changed files
15
git add .
16
git commit -m "Bump the version"
17
18
set +e
19
+echo "Running \`cargo fmt\`.."
+
20
cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
21
cargo fmt -- --write-mode=overwrite
22
23
-echo "remember to add a git tag and running 'cargo test' before committing the rustfmt changes"
+echo "Running tests to make sure \`cargo fmt\` did not break anything.."
+cargo test
+echo "If the tests passed, review and commit the formatting changes and remember to add a git tag."
0 commit comments