71863753bd
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.
17 lines
184 B
Rust
17 lines
184 B
Rust
// rustfmt-imports_granularity: Crate
|
|
|
|
pub mod foo {
|
|
pub mod bar {
|
|
pub struct Bar;
|
|
}
|
|
|
|
pub fn bar() {}
|
|
}
|
|
|
|
use foo::bar;
|
|
use foo::bar::Bar;
|
|
|
|
fn main() {
|
|
bar();
|
|
}
|