Skip to content

Commit

Permalink
chore(lib): fix unexpected cfg warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed May 8, 2024
1 parent 092f3b3 commit a294324
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ jobs:
run: ./ci/h2spec.sh
if: matrix.rust == 'stable'

unexpected-cfgs:
runs-on: ubuntu-latest
needs: [style]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-features
env:
RUSTFLAGS: >-
-D unexpected_cfgs
--cfg h2_internal_check_unexpected_cfgs
--check-cfg=cfg(h2_internal_check_unexpected_cfgs,fuzzing)
#clippy_check:
# runs-on: ubuntu-latest
# steps:
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
clippy::undocumented_unsafe_blocks
)]
#![allow(clippy::type_complexity, clippy::manual_range_contains)]
#![cfg_attr(not(h2_internal_check_unexpected_cfgs), allow(unexpected_cfgs))]
#![cfg_attr(test, deny(warnings))]

macro_rules! proto_err {
Expand Down

0 comments on commit a294324

Please sign in to comment.