diff options
| author | Dmitrii Dolgov <9erthalion6@gmail.com> | 2026-02-09 15:05:32 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-02-09 15:36:00 -0300 |
| commit | 1d3ffe6233b1b6e8697f5027b9441ce70385c997 (patch) | |
| tree | e0a740b42eea7540a87a178a9ce0d2850d971df6 /tools/perf | |
| parent | 3f5dfa472ea6771c821ee0bb10dee7de41ef6021 (diff) | |
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>
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/tests/workloads/code_with_type.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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; |
