rust/tests/target/issue-3750.rs
Geoffry Song 71863753bd Rename merge_imports to imports_granularity and add a Module option.
This renames the existing `true`/`false` options to `Crate`/`Never`, then adds a
new `Module` option which causes imports to be grouped together by their
originating module.
2021-01-17 11:48:47 -06:00

16 lines
177 B
Rust

// rustfmt-imports_granularity: Crate
pub mod foo {
pub mod bar {
pub struct Bar;
}
pub fn bar() {}
}
use foo::{bar, bar::Bar};
fn main() {
bar();
}