Skip to content

Commit ed9e0c1

Browse files
committed
Use github action dtolnay/rust-toolchain@master instead of actions-rs/toolchain@v1
actions-rs/toolchain@v1 uses deprecated features and has not been updated for years
1 parent 010dc85 commit ed9e0c1

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/clippy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions-rs/toolchain@v1
12+
- uses: dtolnay/rust-toolchain@master
1313
with:
14-
profile: minimal
1514
# embedded-hal-async needs nightly.
1615
# Use a pinned version to avoid spontaneous breakages (new clippy lints are added often)
1716
toolchain: nightly-2022-11-22
18-
override: true
1917
components: clippy
2018
- run: cargo clippy -- --deny=warnings

.github/workflows/rustfmt.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- uses: actions-rs/toolchain@v1
13+
- uses: dtolnay/rust-toolchain@master
1414
with:
15-
profile: minimal
1615
toolchain: nightly
17-
override: true
1816
components: rustfmt
1917
- run: cargo fmt --check

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@v2
30-
- uses: actions-rs/toolchain@v1
30+
- uses: dtolnay/rust-toolchain@master
3131
with:
32-
profile: minimal
3332
toolchain: ${{ matrix.rust }}
3433
target: ${{ matrix.target }}
35-
override: true
3634

3735
- run: sed -i '/nightly-only/d' Cargo.toml
3836
if: matrix.rust != 'nightly'

0 commit comments

Comments
 (0)