test(lib): deny warnings

This commit is contained in:
Sean McArthur
2019-09-11 14:56:33 -07:00
parent d46cde1216
commit cea3589ef7
2 changed files with 25 additions and 22 deletions

View File

@@ -1,9 +1,8 @@
#![doc(html_root_url = "https://docs.rs/hyper/0.13.0-alpha.1")]
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![deny(rust_2018_idioms)]
// TODO: re-enable denial when all lib tests are re-enabled.
//#![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, deny(rust_2018_idioms))]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
//! # hyper