summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-05 09:36:09 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-10 09:53:02 +0000
commit5a48bd63349893ed67a088fcb6d2335fe4f73cb6 (patch)
tree5b655fb718287d27c0a368b6a771218591bfd2a9 /check
parentfa8d74898dab45930b2227ef8aba26812325a717 (diff)
downloadsubplot-5a48bd63349893ed67a088fcb6d2335fe4f73cb6.tar.gz
check: Use cargo fmt instead of rustfmt directly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'check')
-rwxr-xr-xcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/check b/check
index ccd978d..447011b 100755
--- a/check
+++ b/check
@@ -64,7 +64,7 @@ $hideok cargo test $quiet
if command -v rustfmt > /dev/null
then
- find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+ cargo fmt --all -- --check
fi
if command -v black > /dev/null