rust-lang / rustfmt

Format Rust code
https://rust-lang.github.io/rustfmt/
Apache License 2.0
5.85k stars 860 forks source link

Don't merge crates when `imports_granularity="Module"` #6192

Open mnkhouri opened 2 weeks ago

mnkhouri commented 2 weeks ago

When merging imports using imports_granularity="Module", individual crate imports should get their own use statement on a new line.

// Before this commit:
use {library1, library2 as lib2, library3};

// After this commit:
use library1;
use library2 as lib2;
use library3;

Fixes: #6191