FuelLabs/sway

The formatter should alphabetize `use` statements if they're not separated by an empty line

Aperta

#2226 aperta il 5 lug 2022

 (4 commenti) (0 reazioni) (0 assegnatari)Rust (5421 fork)batch import
enhancementformattergood first issue

Metriche repository

Star
 (61.702 stelle)
Metriche merge PR
 (Merge medio 22h 6m) (16 PR mergiate in 30 g)

Descrizione

We already alphabetize items within a single use statements. It would be nice to also alphabetize the use statements themselves if they're not separated by an empty line. This replicates the behavior of the Rust formatter.

cc @eureka-cpu couldn't find an open issue for this but please close it if it's already tracked somewhere else!

Guida contributor