From 068959e2c44fb4b6815666047d4162de86edbd4a Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Mon, 29 Apr 2024 22:25:29 -0500 Subject: [PATCH] github: move to dtolnay/rust-toolchain and run clippy (#189) --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index adbde45..59a72e1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,9 +12,10 @@ jobs: matrix: rust: [stable, beta, nightly] steps: - - uses: hecrj/setup-rust-action@v1 + - uses: dtolnay/rust-toolchain@stable with: rust-version: ${{ matrix.rust }} + components: clippy, rustfmt - uses: actions/checkout@master with: ref: ${{ github.ref }} @@ -26,3 +27,5 @@ jobs: run: cargo test --verbose --all-features - name: Build docs run: cargo doc --verbose + - name: Run clippy + run: cargo clippy --verbose --all-features