From 95037f7fa06de1781618976b5f90c0a9a012780a Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Mon, 24 Aug 2026 16:29:56 +0700 Subject: [PATCH] fix(clippy): use as_chunks instead of chunks_exact --- crates/irtt-server/src/fill.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/irtt-server/src/fill.rs b/crates/irtt-server/src/fill.rs index 82f89a7..0103894 100644 --- a/crates/irtt-server/src/fill.rs +++ b/crates/irtt-server/src/fill.rs @@ -115,7 +115,9 @@ fn parse_hex_pattern(body: &str) -> Option> { return None; } digits - .chunks_exact(2) + .as_chunks::<2>() + .0 + .iter() .map(|pair| Some(hex_digit(pair[0])? << 4 | hex_digit(pair[1])?)) .collect() }