ci: fix clippy warnings triggered under specific cfg (#7495)

This commit is contained in:
Motoyuki Kimura
2025-08-04 10:36:17 +00:00
committed by GitHub
parent 2403b91d75
commit 0922aa2a0b
14 changed files with 58 additions and 41 deletions
+8 -2
View File
@@ -832,6 +832,11 @@ jobs:
clippy:
name: clippy
runs-on: ubuntu-latest
strategy:
matrix:
rustflags:
- ""
- "--cfg tokio_unstable --cfg tokio_taskdump --cfg tokio_uring -Dwarnings"
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ env.rust_clippy }}
@@ -841,9 +846,10 @@ jobs:
components: clippy
- uses: Swatinem/rust-cache@v2
# Run clippy
- name: "clippy --all"
- name: "clippy --all ${{ matrix.rustflags }}"
run: cargo clippy --all --tests --all-features --no-deps
env:
RUSTFLAGS: ${{ matrix.rustflags }}
docs:
name: docs
runs-on: ${{ matrix.run.os }}