HF RL Explorer

Group imports from the same module

Group imports from the same module: a task in vim-headless-mastery: vim (Harbor dataset). reader.rs imports every item with a use line of its own. Wherever two or more consecutive use lines import from the same module (everything before the last :: is identical), merge them into a single line with…

The task

`reader.rs` imports every item with a `use` line of its own. Wherever two or more consecutive `use` lines import from the same module (everything before the last `::` is identical), merge them into a single line with a braced list, the items in the order of the lines they come from, separated by a comma and a space:

Part of swedishembedded/vim-headless-mastery.