Skip to content
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

treewide: group import statements std, external, crate #5

Merged
merged 3 commits into from
Feb 2, 2025

Conversation

KarlK90
Copy link
Contributor

@KarlK90 KarlK90 commented Jan 30, 2025

This was done using the unstable rustfmt option1 group_imports that requires a nightly toolchain, thus it was run manually.

@michaelolbrich
Copy link
Owner

Can you add a check to validate that? It will probably break again otherwise.

@KarlK90 KarlK90 force-pushed the chore/fmt-import-groups branch from d5cad5e to 9ecd755 Compare February 1, 2025 21:54
group_imports requires a nightly toolchain, running cargo fmt without
the nightly channel prints a warning but doesn't fail the formatting.

[1]: https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=import#group_imports

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
@KarlK90 KarlK90 force-pushed the chore/fmt-import-groups branch 2 times, most recently from 3a8025d to eeed91a Compare February 1, 2025 22:03
group_imports fmt rule requires the nightly toolchain, thus install and
run the fmt check step with this toolchain.

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
This was done using the unstable rustfmt option[1] group_imports that
requires a nightly toolchain, thus it was run manually.

[1]: https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=import#group_imports

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
@KarlK90 KarlK90 force-pushed the chore/fmt-import-groups branch from eeed91a to 6dd5af3 Compare February 1, 2025 22:04
@KarlK90
Copy link
Contributor Author

KarlK90 commented Feb 1, 2025

I have added the nightly toolchain to the format check - note that the rustfmt option wasn't stabilized yet as there have been edge cases. We might have to disable it in the future if we run into regressions.

@michaelolbrich michaelolbrich merged commit 5d1fe17 into michaelolbrich:main Feb 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants