Skip to content

Commit

Permalink
chore: Use RUSTFLAGS in clippy job for style consistency (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Dec 15, 2022
1 parent 4e5c0b2 commit 73fdefb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 73fdefb

Please sign in to comment.