better rust toolchain

This commit is contained in:
nora 2022-09-15 19:39:10 +02:00
parent 1d4ca0bcda
commit e479d5a1c5

View file

@ -129,9 +129,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: dtolnay/rust-toolchain@nightly
- name: Run cargo clippy (default features)
run: cargo clippy --all-targets --verbose -- -D clippy::all
@ -143,10 +141,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
components: rustfmt
- uses: dtolnay/rust-toolchain@nightly
- name: Check formatting
run: cargo fmt --all -- --check
@ -158,9 +153,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: dtolnay/rust-toolchain@nightly
- name: Check docs
# Note: needs cargo rustdoc, not cargo doc.
run: cargo rustdoc --all-features -- -D warnings