From 7cfe329f95f538f1da93e72a8e24fe2a4819a80d Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Mon, 17 Aug 2026 04:57:19 +0000 Subject: [PATCH] Restore rustfmt formatting on main #1101 landed `borrowed_int4_nblock4_avx2` with a slice expression rustfmt wants wrapped the other way, so `cargo fmt --all --check` fails on main. That breaks the `Fast (Linux x86_64)` lane, which is the only required check in the ruleset, so it is currently red on main and on every open PR regardless of that PR's contents. Pure `cargo fmt --all` output: one expression rewrapped, no semantic change. Verified with the same toolchain CI uses, rustc 1.97.1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- crates/onnx-runtime-ep-cpu/src/kernels/matmul_nbits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/onnx-runtime-ep-cpu/src/kernels/matmul_nbits.rs b/crates/onnx-runtime-ep-cpu/src/kernels/matmul_nbits.rs index 34c96c8e06..c43c76e2f7 100644 --- a/crates/onnx-runtime-ep-cpu/src/kernels/matmul_nbits.rs +++ b/crates/onnx-runtime-ep-cpu/src/kernels/matmul_nbits.rs @@ -6239,8 +6239,8 @@ unsafe fn borrowed_int4_nblock4_avx2( // Ragged or non-32-multiple tail block: scalar, matching the // per-column path's scalar fallback exactly. for c in 0..group { - let block_values = &packed_rows[c] - [block * packed_block_size..(block + 1) * packed_block_size]; + let block_values = + &packed_rows[c][block * packed_block_size..(block + 1) * packed_block_size]; let scale = scales.get(scale_bases[c] + block); let zero_point = layout.zero_point(zp_rows[c], block) as f32; let mut dot = 0.0f32;