From 9a7f30050f8efc52340e698031a7a55a105e72c4 Mon Sep 17 00:00:00 2001 From: srdusr <99972264+srdusr@users.noreply.github.com> Date: Sun, 30 Aug 2026 21:15:00 +0200 Subject: Use as_chunks for fixed-size pixel iteration --- crates/wayland/src/native_lock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/wayland/src/native_lock.rs') diff --git a/crates/wayland/src/native_lock.rs b/crates/wayland/src/native_lock.rs index b5ff7c3..d05b3b3 100644 --- a/crates/wayland/src/native_lock.rs +++ b/crates/wayland/src/native_lock.rs @@ -893,7 +893,7 @@ fn render_ui_box(native: &NativeLock, theme: &srdwm_core::LockConfig) -> (Vec 0 { let bg = rgb_to_bgra(theme.box_bg, panel_alpha); - for px in buf.chunks_exact_mut(4) { + for px in buf.as_chunks_mut::<4>().0 { px.copy_from_slice(&bg); } } -- cgit v1.2.3