From e479d5a1c5fba7314253f62954d1e2efe6c5c91d Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:39:10 +0200 Subject: [PATCH] better rust toolchain --- .github/workflows/rust.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 52343f2..6486f75 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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