From 43ffb64e19b334007ee61f73a6a178b3c86427fa Mon Sep 17 00:00:00 2001 From: Khyber Sen Date: Sun, 23 Jul 2023 01:55:01 -0700 Subject: [PATCH] `fn padding`: Make `left` arg, `dst_tl` var non-`mut` as they're never mutated. --- src/looprestoration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/looprestoration.rs b/src/looprestoration.rs index 9a2bbc736..e728b034a 100644 --- a/src/looprestoration.rs +++ b/src/looprestoration.rs @@ -156,7 +156,7 @@ pub(crate) unsafe fn padding( dst: &mut [BD::Pixel; 70 /*(64 + 3 + 3)*/ * REST_UNIT_STRIDE], p: *const BD::Pixel, stride: usize, - mut left: *const [BD::Pixel; 4], + left: *const [BD::Pixel; 4], lpf: *const BD::Pixel, unit_w: usize, stripe_h: usize, @@ -196,7 +196,7 @@ pub(crate) unsafe fn padding( } } - let mut dst_tl = &mut dst_l[3 * REST_UNIT_STRIDE..]; + let dst_tl = &mut dst_l[3 * REST_UNIT_STRIDE..]; if have_bottom { // Copy next loop filtered rows let lpf = std::slice::from_raw_parts(lpf, 7 * stride + unit_w);