Re: [PATCH 0/3] Clean `rustfmt` formatting and define imports style

From: Benno Lossin

Date: Fri Oct 10 2025 - 16:31:30 EST


On Fri Oct 10, 2025 at 7:43 PM CEST, Miguel Ojeda wrote:
> Hi Linus,
>
> Please see these commits, especially the documentation one. It is a
> follow-up of the discussion on `rustfmt`.
>
> If you are OK with it, please pick them up for -rc1 -- this should make
> CIs green and let people work easily after -rc1, which would help even
> if we decide to do something differently later on.
>
> I can send a quick PR if you prefer.
>
> Thanks!
>
> Miguel Ojeda (3):
> docs: rust: add section on imports formatting
> rust: alloc: employ a trailing comment to keep vertical layout
> rust: cpufreq: fix formatting
>
> Documentation/rust/coding-guidelines.rst | 75 ++++++++++++++++++++++++
> rust/kernel/alloc/kvec.rs | 2 +-
> rust/kernel/cpufreq.rs | 3 +-
> 3 files changed, 77 insertions(+), 3 deletions(-)

For the series:

Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>

---
Cheers,
Benno