From 5ad259620c9abb958ff80c42cb1117be47f8bad1 Mon Sep 17 00:00:00 2001 From: Michael Beaumont Date: Thu, 18 Mar 2021 20:59:31 +0100 Subject: [PATCH] Add cargo fmt --all -- --check to ci.sh --- .github/workflows/rust.yml | 2 +- ci.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cdfe354c..17b8353e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,7 +18,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: nightly - components: rust-src + components: rust-src, rustfmt override: true - name: install run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi diff --git a/ci.sh b/ci.sh index d726db37..d169246b 100755 --- a/ci.sh +++ b/ci.sh @@ -4,6 +4,8 @@ set -euxo pipefail cd $(dirname $0) +cargo fmt --all -- --check + # embassy std (cd embassy-std-examples; cargo build)