[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP-5=fWJdM8wkSDWcShMt-i1OVxTV0rzdovqsCychb_NEj5Ogw@mail.gmail.com>
Date: Mon, 9 Feb 2026 09:27:22 -0800
From: Ian Rogers <irogers@...gle.com>
To: Dmitrii Dolgov <9erthalion6@...il.com>
Cc: linux-perf-users@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Miguel Ojeda <ojeda@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH v1] perf tests workload: Formatting for code_with_type.rs
On Mon, Feb 9, 2026 at 6:05 AM Dmitrii Dolgov <9erthalion6@...il.com> wrote:
>
> One part of the rust code for code_with_type workload wasn't properly
> formatted. Pass it through rustfmt to fix that.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202602091357.oyRv6hgQ-lkp@intel.com/
> Signed-off-by: Dmitrii Dolgov <9erthalion6@...il.com>
Reviewed-by: Ian Rogers <irogers@...gle.com>
Thanks,
Ian
> ---
> tools/perf/tests/workloads/code_with_type.rs | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/tools/perf/tests/workloads/code_with_type.rs b/tools/perf/tests/workloads/code_with_type.rs
> index 3b91e51919d..3dab39b22dd 100644
> --- a/tools/perf/tests/workloads/code_with_type.rs
> +++ b/tools/perf/tests/workloads/code_with_type.rs
> @@ -10,7 +10,11 @@ struct Buf {
>
> #[no_mangle]
> pub extern "C" fn test_rs(count: u32) {
> - let mut b = Buf { data1: 0, data2: String::from("data"), data3: 0};
> + let mut b = Buf {
> + data1: 0,
> + data2: String::from("data"),
> + data3: 0,
> + };
>
> for _ in 1..count {
> b.data1 += 1;
>
> base-commit: 335047109d7d488bf5ad32a4076e1a011994cd0e
> --
> 2.52.0
>
Powered by blists - more mailing lists