Skip to content

Commit f2a6b6d

Browse files
committed
Only deny warnings in test
This prevents us breaking builds under newer Rust versions with additional warnings.
1 parent c10eabe commit f2a6b6d

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)