Skip to content

Format imports #400

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Format imports #400

wants to merge 2 commits into from

Conversation

joshka
Copy link

@joshka joshka commented Apr 3, 2025

  • Format imports using Module granularity
  • Group imports StdExternalCrate

The general impact of this is 5-10% reduction in lines of code for import statements, with more consistent sorting and simpler diffs.

A rationale behind these choices is similar to rust-lang/compiler-team#750

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only manual change - all other changes are via cargo +nightly fmt --all

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.

1 participant