Skip to content

Commit 5fd566f

Browse files
committed
Set -Dwarnings via CI env rather than cfg
1 parent 8ef8e9f commit 5fd566f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on: [push, pull_request]
44
permissions:
55
contents: read
66

7+
env:
8+
RUSTDOCFLAGS: -Dwarnings
9+
RUSTFLAGS: -Dwarnings
10+
711
jobs:
812
test:
913
name: Test

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![no_std]
2727
#![doc(html_root_url = "https://docs.rs/cfg-if")]
2828
#![deny(missing_docs)]
29-
#![cfg_attr(test, deny(warnings))]
3029
#![cfg_attr(test, allow(unexpected_cfgs))] // we test with features that do not exist
3130

3231
/// The main macro provided by this crate. See crate documentation for more

0 commit comments

Comments
 (0)