Skip to content

Commit 1d3ffe6

Browse files
erthalionacmel
authored andcommitted
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>
1 parent 3f5dfa4 commit 1d3ffe6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/perf/tests/workloads/code_with_type.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ struct Buf {
1010

1111
#[no_mangle]
1212
pub extern "C" fn test_rs(count: u32) {
13-
let mut b = Buf { data1: 0, data2: String::from("data"), data3: 0};
13+
let mut b = Buf {
14+
data1: 0,
15+
data2: String::from("data"),
16+
data3: 0,
17+
};
1418

1519
for _ in 1..count {
1620
b.data1 += 1;

0 commit comments

Comments
 (0)