Update test-all.sh.
This commit is contained in:
@@ -27,8 +27,7 @@ function banner {
|
|||||||
# Run rustfmt if we have it.
|
# Run rustfmt if we have it.
|
||||||
banner "Rust formatting"
|
banner "Rust formatting"
|
||||||
if type rustfmt > /dev/null; then
|
if type rustfmt > /dev/null; then
|
||||||
# In newer versions of rustfmt, replace --write-mode=diff with --check.
|
if ! "$topdir/format-all.sh" --check ; then
|
||||||
if ! "$topdir/format-all.sh" --write-mode=diff ; then
|
|
||||||
echo "Formatting diffs detected! Run \"cargo fmt --all\" to correct."
|
echo "Formatting diffs detected! Run \"cargo fmt --all\" to correct."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -59,7 +58,7 @@ cargo doc
|
|||||||
# Run clippy if we have it.
|
# Run clippy if we have it.
|
||||||
banner "Rust linter"
|
banner "Rust linter"
|
||||||
if "$topdir/check-clippy.sh"; then
|
if "$topdir/check-clippy.sh"; then
|
||||||
"$topdir/clippy-all.sh" --write-mode=diff
|
"$topdir/clippy-all.sh"
|
||||||
else
|
else
|
||||||
echo "\`cargo +nightly install clippy\` for optional rust linting"
|
echo "\`cargo +nightly install clippy\` for optional rust linting"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user