summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-18 08:44:41 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-18 19:49:01 +0300
commit1b8ee07b4a241ad4bf69e4c5210166f4a4216e30 (patch)
treefa02e8270a78cd1d5997db59309ed9fa71430ccd /check
parentd60b331f701e0714dff6343657910ae579e72c29 (diff)
downloadobnam2-1b8ee07b4a241ad4bf69e4c5210166f4a4216e30.tar.gz
fix check to run rustfmt via cargo
Diffstat (limited to 'check')
-rwxr-xr-xcheck6
1 files changed, 1 insertions, 5 deletions
diff --git a/check b/check
index 29032dc..c3b0d8a 100755
--- a/check
+++ b/check
@@ -18,11 +18,7 @@ fi
cargo build --all-targets $quiet
cargo clippy $quiet
+cargo fmt -- --check
$hideok cargo test $quiet
-if command -v rustfmt > /dev/null
-then
- find src -type f -name '*.rs' -exec rustfmt --check '{}' +
-fi
-
echo "Everything seems to be in order."