Skip to content

Commit

Permalink
Deny warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jun 10, 2024
1 parent 6eff86f commit 6689bbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
- run: rustup override set nightly
- name: Build Docs
run: ./docs.sh
env:
RUSTDOCFLAGS: -Dwarnings
lint:
runs-on: ubuntu-latest
name: Lint
Expand Down
2 changes: 1 addition & 1 deletion docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata=$(cargo metadata --format-version 1 --no-deps | jq '.packages | map(sel
features=$(echo "$metadata" | jq -r '.features | join(",")')

export RUSTDOCFLAGS
RUSTDOCFLAGS=$(echo "$metadata" | jq -r '.["rustdoc-args"] | join(" ")')
RUSTDOCFLAGS="$RUSTDOCFLAGS $(echo "$metadata" | jq -r '.["rustdoc-args"] | join(" ")')"
echo "+ RUSTDOCFLAGS=$RUSTDOCFLAGS" > /dev/stderr
echo "+ cargo doc ... --features $features" > /dev/stderr
cargo +nightly doc -Zunstable-options -Zrustdoc-scrape-examples --features "$features"

0 comments on commit 6689bbb

Please sign in to comment.