mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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:
parent
3f5dfa472e
commit
1d3ffe6233
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue