From 6b44c1bc9e5016758f1762047ab1c6eb90d8400b Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Mon, 27 May 2024 20:36:42 +0100 Subject: [PATCH] Add rustfmt component for rustfmt check --- .github/workflows/ci.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e579423..7d214ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,16 +83,8 @@ jobs: name: Check formatting runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - - name: Check formatting - uses: actions-rs/cargo@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly with: - command: fmt - args: -- --check + components: rustfmt + - run: cargo fmt -- --check