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