Skip to content

Commit d9f6316

Browse files
committed
Auto merge of #376 - kamalmarhubi:warnings-in-test, r=utkarshkukreti
Only deny warnings in test This prevents us breaking builds under newer Rust versions with additional warnings.
2 parents c14bfc5 + f2a6b6d commit d9f6316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// latest bitflags triggers a rustc bug with cross-crate macro expansions causing dead_code
99
// warnings even though the macro expands into something with allow(dead_code)
1010
#![allow(dead_code)]
11-
#![deny(warnings)]
11+
#![cfg_attr(test, deny(warnings))]
1212

1313
#[macro_use]
1414
extern crate bitflags;

0 commit comments

Comments
 (0)