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.
21 lines
294 B
Rust
21 lines
294 B
Rust
// rustfmt-imports_granularity: Module
|
|
|
|
use a::b::c;
|
|
use a::d::e;
|
|
use a::f;
|
|
use a::g::{h, i};
|
|
use a::j::k::{self, l};
|
|
use a::j::{self, m};
|
|
use a::n::o::p;
|
|
use a::n::q;
|
|
pub use a::r::s;
|
|
pub use a::t;
|
|
|
|
use foo::e;
|
|
#[cfg(test)]
|
|
use foo::{a::b, c::d};
|
|
|
|
use bar::a::b;
|
|
use bar::c::d;
|
|
use bar::e::f;
|