]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
perf tests workload: Formatting for code_with_type.rs
authorDmitrii Dolgov <9erthalion6@gmail.com>
Mon, 9 Feb 2026 14:05:32 +0000 (15:05 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Feb 2026 18:36:00 +0000 (15:36 -0300)
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>
tools/perf/tests/workloads/code_with_type.rs

index 3b91e51919dd07027734bdebbe1bde1894177774..3dab39b22dd70083d564d7102512cf8f178c736d 100644 (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;