From 316b91ff7eb87c712e89c43ea2fb0dded3ef0c48 Mon Sep 17 00:00:00 2001 From: Abdulwahb Isam Date: Sun, 27 Sep 2026 00:04:27 +0300 Subject: [PATCH] windows: as_chunks instead of chunks_exact(2), which clippy 1.98 wants --- crates/disktree-core/src/windows.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/disktree-core/src/windows.rs b/crates/disktree-core/src/windows.rs index 9e9468d..14ba81d 100644 --- a/crates/disktree-core/src/windows.rs +++ b/crates/disktree-core/src/windows.rs @@ -334,8 +334,10 @@ impl Records { }; let name: Vec = name_bytes - .chunks_exact(2) - .map(|pair| u16::from_ne_bytes([pair[0], pair[1]])) + .as_chunks::<2>() + .0 + .iter() + .map(|pair| u16::from_ne_bytes(*pair)) .collect(); if name == [u16::from(b'.')] || name == [u16::from(b'.'); 2] { return Ok((None, next));