Only run Clippy on stable Rust.

This commit is contained in:
Martin Hoffmann
2022-09-15 12:43:58 +02:00
parent 28fd40fc0e
commit 23cedfa7dd
+2 -2
View File
@@ -15,9 +15,9 @@ jobs:
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- if: matrix.rust == 'stable' || matrix.rust == 'nightly'
- if: matrix.rust == 'stable'
run: rustup component add clippy
- if: matrix.rust == 'stable' || matrix.rust == 'nightly'
- if: matrix.rust == 'stable'
run: cargo clippy --all-features -- -D warnings
- if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
run: cargo fmt --all -- --check