You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: When reorder_imports = true, rustfmt mixes pub imports in with private imports.
Please add an option to put pub imports (aka exports) before normal imports.
IMO it's not idiomatic to mix them in with normal imports because they are also exports and deserve extra attention so I usually put them before normal imports and then leave an empty line between.
The text was updated successfully, but these errors were encountered:
Also, I would REALLY appreciate a configuration option to order imports as follows:
pub imports (exports)
imports from std, core, alloc etc. (the built-in crates)
imports from third-party crates
imports from crates of the current workspace
imports from the current crate
With an optional empty line between each group. Can you please add this :)
Context: When
reorder_imports = true
, rustfmt mixespub
imports in with private imports.Please add an option to put pub imports (aka exports) before normal imports.
IMO it's not idiomatic to mix them in with normal imports because they are also exports and deserve extra attention so I usually put them before normal imports and then leave an empty line between.
The text was updated successfully, but these errors were encountered: