chore: Use RUSTFLAGS in clippy job for style consistency (#1192)

This commit is contained in:
tottoto
2022-12-16 00:43:40 +09:00
committed by GitHub
parent 4e5c0b29ba
commit 73fdefbeeb
+5 -1
View File
@@ -41,6 +41,10 @@ jobs:
clippy:
name: cargo clippy
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-A unknown_lints -D warnings"
steps:
- uses: actions/checkout@v3
- name: Install Rust and clippy
@@ -56,7 +60,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
run: cargo clippy --workspace --all-targets --all-features -- --allow unknown_lints --deny warnings
run: cargo clippy --workspace --all-targets --all-features
deny-check:
name: cargo-deny check