chore: Fix doc warning (#1214)

* chore(docs): Fix lint warning

* chore: Add ci to check cargo doc
This commit is contained in:
tottoto
2023-01-04 14:20:24 -05:00
committed by GitHub
parent 3ee1e6cc10
commit 2d7e14f513
5 changed files with 30 additions and 8 deletions
+20
View File
@@ -39,6 +39,26 @@ jobs:
- name: Check all targets
run: cargo check --all --all-targets --all-features
check-docs:
name: check docs
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: hecrj/setup-rust-action@v1
with:
rust-version: "1.60"
- uses: Swatinem/rust-cache@v2
- name: cargo doc
run: cargo doc --workspace --no-deps --exclude examples
clippy:
name: cargo clippy
runs-on: ubuntu-latest