rust/tests/source/imports_granularity_module.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

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,
};