Skip to content

Commit 08328a4

Browse files
committed
CI allow Rust lint unexpected_cfgs for cfg CHANNEL_NIGHTLY
1 parent 676dca0 commit 08328a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ jobs:
125125
- name: Run rustdoc
126126
run: |
127127
cd spdlog
128-
cargo +nightly rustdoc --all-features --verbose -- -D warnings
128+
# The reason for allowing lint `unexpected_cfgs` not in `build.rs` or `Cargo.toml` but in CI is that we need to keep MSRV
129+
cargo +nightly rustdoc --all-features --verbose -- -D warnings -A unexpected_cfgs
129130
cd ../spdlog-macros
130-
cargo +nightly rustdoc --all-features --verbose -- -D warnings
131+
cargo +nightly rustdoc --all-features --verbose -- -D warnings -A unexpected_cfgs
131132
132133
check-msrv:
133134
strategy:

0 commit comments

Comments
 (0)