From 87f27d5ed6dccb1deda611fb2224768cefed0ef7 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 4 Aug 2021 15:22:26 +0200 Subject: [PATCH] ci: rustfmt check all .rs files The old script was missing many .rs files that were not enabled due to cfg's. --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 118143da..d11bc8d4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -122,7 +122,7 @@ jobs: with: toolchain: stable - name: Check fmt - run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done + run: find -name '*.rs' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 test: runs-on: ubuntu-latest