Skip to content

Commit 58205e6

Browse files
committed
Run cargo fmt with nightly toolchain
Running `rustfmt` with the nightly toolchain allows us to use unstable options. Users can still run it with the stable toolchain locally and ignore the warnings.
1 parent dcc9d0f commit 58205e6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on: [push, pull_request]
33
name: Continuous integration
44

55
jobs:
6-
lint_fuzz_stable:
7-
name: Lint + Fuzz
6+
Fuzz:
7+
name: Fuzz
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
@@ -24,11 +24,10 @@ jobs:
2424
- name: Running fuzzer
2525
env:
2626
DO_FUZZ: true
27-
DO_LINT: true
2827
run: ./contrib/test.sh
2928

30-
bench_nightly:
31-
name: Bench + Tests
29+
Nightly:
30+
name: Bench + Lint
3231
runs-on: ubuntu-latest
3332
strategy:
3433
matrix:
@@ -43,10 +42,14 @@ jobs:
4342
profile: minimal
4443
toolchain: ${{ matrix.rust }}
4544
override: true
46-
- name: Running cargo test
45+
- name: Running bench
4746
env:
4847
DO_BENCH: true
4948
run: ./contrib/test.sh
49+
- name: Running clippy
50+
env:
51+
DO_LINT: true
52+
run: ./contrib/test.sh
5053

5154
UnitTests:
5255
name: Tests

0 commit comments

Comments
 (0)