Skip to content

Commit c01a29d

Browse files
committed
Deny warnings on CI
1 parent 5393b1b commit c01a29d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ci/run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -ex
77
FEATURES="rayon,serde"
88
if [ "${TRAVIS_RUST_VERSION}" = "nightly" ]; then
99
FEATURES="${FEATURES},nightly"
10+
export RUSTFLAGS="$RUSTFLAGS --cfg hashbrown_deny_warnings"
1011
fi
1112

1213
CARGO=cargo
@@ -18,6 +19,8 @@ if [ "${CROSS}" = "1" ]; then
1819
CARGO=cross
1920
fi
2021

22+
export RUSTFLAGS="$RUSTFLAGS --cfg hashbrown_deny_warnings"
23+
2124
"${CARGO}" -vv test --target="${TARGET}"
2225
"${CARGO}" -vv test --target="${TARGET}" --features "${FEATURES}"
2326

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
)
2424
)]
2525
#![warn(missing_docs)]
26+
#![cfg_attr(hashbrown_deny_warnings, deny(warnings))]
2627

2728
#[cfg(test)]
2829
#[macro_use]
30+
#[allow(unused_imports)]
2931
extern crate std;
3032
#[cfg(test)]
3133
extern crate rand;
3234

35+
3336
#[cfg(feature = "nightly")]
3437
#[cfg_attr(test, macro_use)]
3538
extern crate alloc;

0 commit comments

Comments
 (0)