fosskers's Blog

fosskers's Avatar Image
Haskell -> Rust -> Lisps
← All posts

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

To like or reply, open original post on Emacs.ch