Skip to content

Commit f2eaf95

Browse files
committed
feat: use nightly toolchain for formatting
@da2ce7 started using the nightly build for rust formatting here: #99 And the job 'format' in the workflow did not work, showing these warnings: ``` Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel. Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel. Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel. Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel. ``` So we needed the nightly channel anyway.
1 parent ca07f32 commit f2eaf95

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test_build_release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ jobs:
1313
- uses: actions-rs/toolchain@v1
1414
with:
1515
profile: minimal
16-
toolchain: stable
17-
components: rustfmt
16+
toolchain: nightly
17+
override: true
18+
components: rustfmt, clippy
1819
- uses: Swatinem/rust-cache@v1
1920
- name: Check Rust Formatting
20-
run: cargo fmt --check
21+
uses: actions-rs/cargo@v1
22+
with:
23+
command: fmt
24+
args: --check
2125

2226
test:
2327
needs: format

0 commit comments

Comments
 (0)