style(xtask): read a symbolized function's words as 4-byte arrays (as_chunks), where clippy 1.99's chunks_exact_to_as_chunks failed xtask's lane on the forward-branch scan

This commit is contained in:
Garvit Surana committed 2026-11-30 16:36:45 +00:00
1 parent a83916afc6
commit 6534091473
1 file changed
+2 -2
+2 -2
View File
@@ -757,10 +757,10 @@ pub(crate) fn functions_of(
break;
};
let mut furthest = end;
for (index, word) in slice.chunks_exact(4).enumerate() {
for (index, word) in slice.as_chunks::<4>().0.iter().enumerate() {
if let Some(target) = forward_branch_target(
address + (index * 4) as u64,
u32::from_le_bytes(word.try_into().expect("4 bytes")),
u32::from_le_bytes(*word),
) && target >= end
&& target < max_end
{