windows: as_chunks instead of chunks_exact(2), which clippy 1.98 wants

This commit is contained in:
Abdulwahb Isam
2026-09-27 00:04:27 +03:00
parent 747cb77766
commit 316b91ff7e
+4 -2
View File
@@ -334,8 +334,10 @@ impl Records {
};
let name: Vec<u16> = 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));