set deny(warnings) only when cfg(test) (#307)

This should fix building the docs on docs.rs.
This commit is contained in:
Sean McArthur
2018-08-15 11:05:16 -07:00
committed by GitHub
parent b0db515bdd
commit d464c6bfff

View File

@@ -85,7 +85,8 @@
//! [`client::handshake`]: client/fn.handshake.html
#![doc(html_root_url = "https://docs.rs/h2/0.1.12")]
#![deny(warnings, missing_debug_implementations, missing_docs)]
#![deny(missing_debug_implementations, missing_docs)]
#![cfg_attr(test, deny(warnings))]
#[macro_use]
extern crate futures;