docs(lib): enable doc_cfg on docs.rs builds (#2372)

This commit is contained in:
Sean McArthur
2020-12-23 12:55:28 -08:00
committed by GitHub
parent c784a10174
commit c97a106125
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
#![cfg_attr(test, deny(rust_2018_idioms))]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! # hyper
//!