Is it possible to use rustfmt to format just the imports?

Viewed 604

I've been messing around with nightly rustfmt and all its options (so many more than the stable version).

So, just out of curiosity: if I want to use rustfmt only to format my imports (the use statements), without touching the rest of the code, is it possible?

1 Answers

I think it is impossible since many configurations don't have a disable option.

You can find all configurations here

Related