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