Skip to content

Conversation

@PoignardAzur
Copy link
Contributor

No description provided.

@RagibHasin
Copy link
Contributor

What rustfmt option does this? I was totally ignorant of this and did these reordering by hand 🤦🏽‍♂️

@xStrom
Copy link
Member

xStrom commented Dec 6, 2025

They're commented out in .rustfmt.toml because you need to use a nightly toolchain to do it.

imports_granularity = "Module"
group_imports = "StdExternalCrate"

@PoignardAzur
Copy link
Contributor Author

Note that these options sometimes do things I don't like (e.g. mixing private and pub imports) so I applied them selectively.

@PoignardAzur PoignardAzur added this pull request to the merge queue Dec 7, 2025
Merged via the queue into linebender:main with commit cc55b03 Dec 7, 2025
17 checks passed
@PoignardAzur PoignardAzur deleted the rustfmt_imports_3 branch December 7, 2025 17:16
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.

3 participants