Skip to content

Commit

Permalink
Fix a rustdoc::all warning
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed Mar 29, 2024
1 parent f8cfd9c commit 60b6a49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cargo-husky/hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "### fmt --all --check ###"
cargo fmt --all --check

echo "### cargo doc --all-features --no-deps ###"
RUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps
RUSTDOCFLAGS="-D rustdoc::all" cargo doc --all-features --no-deps

# With no features
echo "### test --no-default-features --workspace ###"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ jobs:
- uses: actions/checkout@v4
- name: Docs
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
RUSTDOCFLAGS: "-D rustdoc::all"
run: cargo doc --all-features --no-deps
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! # Roadster
//!
//! Todo: Add documentation
#![forbid(unsafe_code)]

pub mod app;
Expand Down

0 comments on commit 60b6a49

Please sign in to comment.