From dcdf306d3a48d617afe340b99173f018baa04b16 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sun, 20 Mar 2022 15:14:41 +0000 Subject: [PATCH] CI: Refactor rustfmt CI job --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ee58f3..01e80be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,9 +143,10 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: 1.51.0 + components: rustfmt override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 + - name: Check formatting + uses: actions-rs/cargo@v1 with: command: fmt args: -- --check