Skip to content

Commit

Permalink
docs(lib): enable doc_cfg on docs.rs builds (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar authored Dec 23, 2020
1 parent c784a10 commit c97a106
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: rustdoc
args: --features full -- -D broken-intra-doc-links
args: --features full -- --cfg docsrs -D broken-intra-doc-links
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
//!
Expand Down

0 comments on commit c97a106

Please sign in to comment.