From d464c6bfffd4617dde48e3ccf807ee2f490df119 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 15 Aug 2018 11:05:16 -0700 Subject: [PATCH] set deny(warnings) only when cfg(test) (#307) This should fix building the docs on docs.rs. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8af549d..bb63a04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;