Update to the rustfmt in rust 1.28, which is now stable.
Also, rustfmt's --write-mode=check is now named --check.
This commit is contained in:
@@ -27,7 +27,7 @@ function banner {
|
||||
# Run rustfmt if we have it.
|
||||
banner "Rust formatting"
|
||||
if type rustfmt > /dev/null; then
|
||||
if ! "$topdir/format-all.sh" --write-mode=check ; then
|
||||
if ! "$topdir/format-all.sh" --check ; then
|
||||
echo "Formatting diffs detected! Run \"cargo fmt --all\" to correct."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user