-
Notifications
You must be signed in to change notification settings - Fork 49
format: re-apply rust-format #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ACK 5e2bef3 |
hi @da2ce7 how are you formatting the code? It seems the format check in the test_build_release workflow does work. I'm using VSCode, which I suppose runs something like: cargo clippy --no-deps And you can fix with:
The code in the PR is not well formatted because I've been using Clippy. I assumed we were using Clippy because it shows more warnings (not only linting errors). But in practice, we were not forcing any format since the linting check is not working. If we agree, we should change the workflow, although we have some warnings for Clippy. I would add a new issue for changing the formatter and fixing the warnings. |
@josecelano I think that the issue is because the difference in version of the rust-format command. I've got the nightly version installed; that I think is more strict than the stable version. |
@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.
@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.
@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.
@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.
@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.
@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.
@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.
f2eaf95 feat: use nightly toolchain for formatting (Jose Celano) Pull request description: @da2ce7 started using the nightly build for rust formatting in this [PR-99](#99) And the job 'format' in the workflow [did not work](https://github.com/torrust/torrust-tracker/actions/runs/3273393423/jobs/5385541084#step:5:9), 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. I've changed the workflow to use it. ACKs for top commit: josecelano: ACK f2eaf95 da2ce7: ACK f2eaf95 Tree-SHA512: 4563fa5fc5dceec12a753b798237e0fcebfd10f1854440847bf87572e237bd76c641155c94791fb0aa3ad87987bfc7f492a3efc0f2d45611d8b0c71f1c6a139e
No description provided.