文字列の所有権取得メソッドを .to_owned()
から .clone()
に変更
#5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ドキュメントのデプロイ | |
on: | |
push: | |
branches: | |
- main # ドキュメントを生成するブランチを指定 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: リポジトリのチェックアウト | |
uses: actions/checkout@v2 | |
- name: Rustのセットアップ | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: ドキュメントのビルド | |
run: cargo doc --no-deps | |
- name: GitHub Pagesへのデプロイ | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |