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

Miguel Ojeda posted 3 patches 2 months, 1 week ago
Documentation/rust/coding-guidelines.rst | 75 ++++++++++++++++++++++++
rust/kernel/alloc/kvec.rs                |  2 +-
rust/kernel/cpufreq.rs                   |  3 +-
3 files changed, 77 insertions(+), 3 deletions(-)
[PATCH 0/3] Clean `rustfmt` formatting and define imports style
Posted by Miguel Ojeda 2 months, 1 week ago
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(-)

--
2.51.0
Re: [PATCH 0/3] Clean `rustfmt` formatting and define imports style
Posted by Miguel Ojeda 2 months ago
On Fri, Oct 10, 2025 at 7:44 PM Miguel Ojeda <ojeda@kernel.org> 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!

Since I didn't hear anything, I will send you the PR after tomorrow's
linux-next.

Applied to `rust-fixes` (plus one I just sent to the list) -- thanks everyone!

Cheers,
Miguel
Re: [PATCH 0/3] Clean `rustfmt` formatting and define imports style
Posted by Benno Lossin 2 months, 1 week ago
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@kernel.org>

---
Cheers,
Benno