clippy (nyare stable): as_chunks i stället för chunks_exact(4)
All checks were successful
check / check (push) Successful in 1m35s
All checks were successful
check / check (push) Successful in 1m35s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user