mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
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.
19 lines
286 B
Rust
19 lines
286 B
Rust
// rustfmt-imports_granularity: Module
|
|
|
|
use a::{b::c, d::e};
|
|
use a::{f, g::{h, i}};
|
|
use a::{j::{self, k::{self, l}, m}, n::{o::p, q}};
|
|
pub use a::{r::s, t};
|
|
|
|
#[cfg(test)]
|
|
use foo::{a::b, c::d};
|
|
use foo::e;
|
|
|
|
use bar::{
|
|
// comment
|
|
a::b,
|
|
// more comment
|
|
c::d,
|
|
e::f,
|
|
};
|