Skip to content

Commit

Permalink
style-guide: Remove inaccurate statement about rustfmt
Browse files Browse the repository at this point in the history
rustfmt does include a mechanism to distinguish standard library
imports, which it does syntactically by crate name. Avoid making a
misleading statement that implies it cannot do this.
  • Loading branch information
joshtriplett committed Jun 22, 2023
1 parent 4c5bb06 commit d270af3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,6 @@ use b;
Because of `macro_use`, attributes must also start a new group and prevent
re-ordering.

Note that tools which only have access to syntax (such as `rustfmt`) cannot
tell which imports are from an external crate or the std lib, etc.


#### Ordering list import

Names in a list import must be sorted ascii-betically, but with `self` and
Expand Down

0 comments on commit d270af3

Please sign in to comment.