From bea56aff10b5a35a31e1c268a8c01c0060deefc4 Mon Sep 17 00:00:00 2001 From: Hendrik Eeckhaut Date: Thu, 17 Aug 2023 10:04:56 +0200 Subject: [PATCH] Run clippy with rust nightly #24 --- .github/workflows/rust.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b67a3fd9..8d51c006 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,6 @@ jobs: uses: dtolnay/rust-toolchain@stable with: toolchain: stable - components: clippy - uses: Swatinem/rust-cache@v2.5.0 @@ -37,12 +36,7 @@ jobs: # RUSTDOCFLAGS: -D warnings run: cargo doc --no-deps --workspace --lib --document-private-items --examples - - name: Run Clippy - # env: - # RUSTDOCFLAGS: -D warnings - run: cargo clippy --all-targets --all-features - - rustfmt: + rustfmt_and_clippy: name: Rustfmt runs-on: ubuntu-latest steps: @@ -52,7 +46,10 @@ jobs: uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - components: rustfmt + components: rustfmt, clippy - name: "Check formatting" - run: cargo +nightly fmt --check --all \ No newline at end of file + run: cargo +nightly fmt --check --all + + - name: Run Clippy + run: cargo clippy --all-targets --all-features \ No newline at end of file