Add this to your rustfmt.toml
:
imports_granularity = "Item"
unstable_features = true
This requires nightly
as well.
My team recently decided upon common formatting config, and we were all surprised how clean Item
makes things in real code.
#rust
https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#imports_granularity