Re: [PATCH 4/5] rust: usb: use "kernel vertical" style for imports
From: Miguel Ojeda
Date: Mon Jan 05 2026 - 18:44:43 EST
On Mon, Jan 5, 2026 at 8:36 PM Daniel Almeida
<daniel.almeida@xxxxxxxxxxxxx> wrote:
>
> OOC: can rustfmt do this, or is it a manual process for the time being?
It does it if you add the `//`, but adding the `//` is manual, i.e. it
will do what you want but you have to trigger it by having the `//`:
https://docs.kernel.org/rust/coding-guidelines.html#imports
The goal is that `rustfmt` does exactly this, but without having to
write the `//` (and without needing/adding the `//` itself).
I hope that helps!
Cheers,
Miguel