Skip to content

Commit

Permalink
feat: use nightly toolchain for formatting
Browse files Browse the repository at this point in the history
@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.
  • Loading branch information
josecelano committed Oct 18, 2022
1 parent ca07f32 commit 28a7ff2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Check Rust Formatting
run: cargo fmt --check
Expand Down

0 comments on commit 28a7ff2

Please sign in to comment.