X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fscale%2Fpalette%2Fmediancut.rs;h=b8fb7d65296f6d27a02cd222270df187d8d5cbc0;hb=HEAD;hp=64281ef23bfa7bef86bca19c3e52aaa89471481f;hpb=9d2db2234d6c97dd13f6ca693d370b1e67bd8bed;p=nihav.git diff --git a/nihav-core/src/scale/palette/mediancut.rs b/nihav-core/src/scale/palette/mediancut.rs index 64281ef..b8fb7d6 100644 --- a/nihav-core/src/scale/palette/mediancut.rs +++ b/nihav-core/src/scale/palette/mediancut.rs @@ -47,7 +47,7 @@ impl<'a> VQBox<'a> { pivot = start + end; cand1 = start; } - (&mut arr[start..][..end]).copy_from_slice(bucket.as_slice()); + arr[start..][..end].copy_from_slice(bucket.as_slice()); start += end; } for bucket in buckets.iter() {