Skip to content

Commit

Permalink
refactor: move doc lint to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Mar 11, 2024
1 parent 5737758 commit 50f347d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ jobs:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features

doc:
needs: [style]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo doc --no-deps
env:
RUSTDOCFLAGS: -D rustdoc::broken-intra-doc-links
7 changes: 1 addition & 6 deletions http-body-util/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#![deny(
missing_debug_implementations,
missing_docs,
unreachable_pub,
rustdoc::broken_intra_doc_links
)]
#![deny(missing_debug_implementations, missing_docs, unreachable_pub)]
#![cfg_attr(test, deny(warnings))]

//! Utilities for [`http_body::Body`].
Expand Down
1 change: 0 additions & 1 deletion http-body/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
missing_debug_implementations,
missing_docs,
unreachable_pub,
rustdoc::broken_intra_doc_links,
clippy::missing_safety_doc,
clippy::undocumented_unsafe_blocks
)]
Expand Down

0 comments on commit 50f347d

Please sign in to comment.