From 1d3ffe6233b1b6e8697f5027b9441ce70385c997 Mon Sep 17 00:00:00 2001 From: Dmitrii Dolgov <9erthalion6@gmail.com> Date: Mon, 9 Feb 2026 15:05:32 +0100 Subject: [PATCH] perf tests workload: Formatting for code_with_type.rs One part of the rust code for code_with_type workload wasn't properly formatted. Pass it through rustfmt to fix that. Closes: https://lore.kernel.org/oe-kbuild-all/202602091357.oyRv6hgQ-lkp@intel.com/ Reported-by: kernel test robot Reviewed-by: Ian Rogers Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com> Cc: Miguel Ojeda Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo --- 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 3b91e51919dd..3dab39b22dd7 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; -- 2.30.2