diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1094c5f16..155d6ee06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,12 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Formatting - run: | - # Install extra rustup components - rustup component add rustfmt - cargo fmt --all -- --check + run: cargo fmt --all -- --check - name: Test run: |