summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck5
-rwxr-xr-xdebian/rules2
2 files changed, 5 insertions, 2 deletions
diff --git a/check b/check
index b9a3ec6..47fe4bd 100755
--- a/check
+++ b/check
@@ -14,7 +14,10 @@ docgen() {
cargo clippy -q
cargo test -q
-find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+if command -v rustfmt > /dev/null
+then
+ find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+fi
for md in [^R]*.md
do
diff --git a/debian/rules b/debian/rules
index a6a7062..918bec3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,4 +10,4 @@ override_dh_auto_install:
cargo install --path=. --root=debian/subplot
override_dh_auto_test:
- true
+ ./check