Commit 1d3ffe62 authored by Dmitrii Dolgov's avatar Dmitrii Dolgov Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarDmitrii Dolgov <9erthalion6@gmail.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3f5dfa47
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;