fix(clippy): use as_chunks instead of chunks_exact

This commit is contained in:
Nils Andreas Svee committed 2026-08-25 00:16:21 +07:00
1 parent 614579b8b6
commit 95037f7fa0
1 file changed
+3 -1
+3 -1
View File
@@ -115,7 +115,9 @@ fn parse_hex_pattern(body: &str) -> Option<Vec<u8>> {
return None;
}
digits
.chunks_exact(2)
.as_chunks::<2>()
.0
.iter()
.map(|pair| Some(hex_digit(pair[0])? << 4 | hex_digit(pair[1])?))
.collect()
}