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 <lkp@intel.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Dmitrii Dolgov 2026-02-09 15:05:32 +01:00 committed by Arnaldo Carvalho de Melo
parent 3f5dfa472e
commit 1d3ffe6233

View file

@ -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;