diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 118143daa..d11bc8d41 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