try and fix cargo clippy in CI
@@ -185,14 +185,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v1
+ uses: actions/checkout@v2
+ - name: Install stable
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ override: true
+ components: rustfmt, clippy
- name: Check formatting
- uses: actions-rs/cargo@v1
+ uses: actions-rs/toolchain@v1
with:
command: fmt
args: --all -- --check
- name: Run clippy
- uses: actions-rs/cargo@v1
+ uses: actions-rs/toolchain@v1
with:
command: clippy
args: --all -- --deny warnings
