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.
29 lines
458 B
Rust
29 lines
458 B
Rust
// rustfmt-imports_granularity: Crate
|
|
|
|
use a::{a, b, c, d, e, f, g};
|
|
|
|
#[doc(hidden)]
|
|
use a::b;
|
|
use a::{c, d};
|
|
|
|
#[doc(hidden)]
|
|
use a::b;
|
|
use a::{c, d, e};
|
|
|
|
use foo::{a, b, c};
|
|
pub use foo::{bar, foobar};
|
|
|
|
use a::b::c::{d, xxx, yyy, zzz, *};
|
|
|
|
// https://github.com/rust-lang/rustfmt/issues/3808
|
|
use d::{self};
|
|
use e::{self as foo};
|
|
use f::{self, b};
|
|
use g::{self, a, b};
|
|
use h::a;
|
|
use i::a::{self};
|
|
use j::a::{self};
|
|
|
|
use k::{a, b, c, d};
|
|
use l::{a, b, c, d};
|