summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck4
1 files changed, 2 insertions, 2 deletions
diff --git a/check b/check
index 5f7184d..e463ca2 100755
--- a/check
+++ b/check
@@ -17,11 +17,11 @@ fi
got_cargo_cmd()
{
- cargo --list | grep " $1 " > /dev/null
+ cargo "$1" --help > /dev/null
}
-$hideok cargo build --all-targets
got_cargo_cmd clippy && cargo clippy -q --all-targets
+$hideok cargo build --all-targets
got_cargo_cmd fmt && $hideok cargo fmt -- --check
$hideok cargo test