clippy (nyare stable): as_chunks i stället för chunks_exact(4)
All checks were successful
check / check (push) Successful in 1m35s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-29 23:54:43 +02:00
parent e4e4d39405
commit c9cdf2edc3

View File

@@ -228,8 +228,9 @@ impl Dispatch<ZwlrForeignToplevelHandleV1, ()> for WlState {
let mut min = false;
let mut max = false;
let mut act = false;
for chunk in raw.chunks_exact(4) {
let v = u32::from_ne_bytes(chunk.try_into().unwrap());
let (chunks, _rest) = raw.as_chunks::<4>();
for chunk in chunks {
let v = u32::from_ne_bytes(*chunk);
match S::try_from(v) {
Ok(S::Minimized) => min = true,
Ok(S::Maximized) => max = true,