Skip to content

chore: Fix a clippy warning #667

chore: Fix a clippy warning

chore: Fix a clippy warning #667

Workflow file for this run

name: docs
on:
push:
branches: [main]
pull_request:
jobs:
docs:
name: docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- uses: Swatinem/rust-cache@v2
- name: Build docs
run: cargo doc --no-deps -Zrustdoc-map
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs"
- name: Deploy docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc/
force_orphan: true