Skip to content

Commit b292950

Browse files
authored
Fix clippy errors (#87)
CI config wasn't overriding the Rust toolchain
1 parent 43420e4 commit b292950

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/workspace.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,23 @@ jobs:
1616
- uses: actions/checkout@v1
1717
- uses: actions-rs/toolchain@v1
1818
with:
19-
profile: minimal
20-
toolchain: 1.46.0
19+
toolchain: 1.46.0 # MSRV
2120
components: clippy
21+
override: true
22+
profile: minimal
2223
- run: cargo clippy --all --all-features -- -D warnings
24+
2325
rustfmt:
2426
runs-on: ubuntu-latest
2527
steps:
26-
- name: Checkout sources
27-
uses: actions/checkout@v1
28-
29-
- name: Install stable toolchain
30-
uses: actions-rs/toolchain@v1
28+
- uses: actions/checkout@v1
29+
- uses: actions-rs/toolchain@v1
3130
with:
32-
profile: minimal
3331
toolchain: stable
3432
components: rustfmt
35-
36-
- name: Run cargo fmt
37-
uses: actions-rs/cargo@v1
33+
profile: minimal
34+
override: true
35+
- uses: actions-rs/cargo@v1
3836
with:
3937
command: fmt
4038
args: --all -- --check

0 commit comments

Comments
 (0)