From b8daa278848b8cd6652f3d536f98e720822fe293 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 3 Aug 2018 15:11:02 -0700 Subject: [PATCH] Update test-all.sh. --- test-all.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test-all.sh b/test-all.sh index a250bc6579..7fd2a712b2 100755 --- a/test-all.sh +++ b/test-all.sh @@ -27,8 +27,7 @@ function banner { # Run rustfmt if we have it. banner "Rust formatting" if type rustfmt > /dev/null; then - # In newer versions of rustfmt, replace --write-mode=diff with --check. - if ! "$topdir/format-all.sh" --write-mode=diff ; then + if ! "$topdir/format-all.sh" --check ; then echo "Formatting diffs detected! Run \"cargo fmt --all\" to correct." exit 1 fi @@ -59,7 +58,7 @@ cargo doc # Run clippy if we have it. banner "Rust linter" if "$topdir/check-clippy.sh"; then - "$topdir/clippy-all.sh" --write-mode=diff + "$topdir/clippy-all.sh" else echo "\`cargo +nightly install clippy\` for optional rust linting" fi