From 73fdefbeebd9313768330988a52c283cfcc15698 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 16 Dec 2022 00:43:40 +0900 Subject: [PATCH] chore: Use RUSTFLAGS in clippy job for style consistency (#1192) --- .github/workflows/CI.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5723e9a9e..92ecaec4c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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