diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-01-10 14:18:41 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-01-10 14:18:41 +0200 |
commit | 9dd1bae0223e2ac6ba70d8707406f25d6bdc8bef (patch) | |
tree | 08e9e5767184a323712726a5624aa8aa03919644 /check | |
parent | 6f0689248ec63ff95ef9848999fca4460e0eced9 (diff) | |
download | subplot-9dd1bae0223e2ac6ba70d8707406f25d6bdc8bef.tar.gz |
Fix: check only runs clippy if it's available
Diffstat (limited to 'check')
-rwxr-xr-x | check | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,10 @@ docgen() { cargo run -q --bin sp-docgen -- "$1" --output "$2" } -cargo clippy -q +if cargo --list | awk '{ print $1 }' | grep 'clippy$' > /dev/null +then + cargo clippy -q +fi cargo test -q if command -v rustfmt > /dev/null |