Skip to content

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