From 1b8ee07b4a241ad4bf69e4c5210166f4a4216e30 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 18 Sep 2020 08:44:41 +0300 Subject: fix check to run rustfmt via cargo --- check | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'check') 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." -- cgit v1.2.1