FuelLabs/sway

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

Open

#2,226 opened on Jul 5, 2022

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (61,702 stars) (5,421 forks)batch import
enhancementformattergood first issue

Description

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!

Contributor guide