mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-16 19:59:56 +02:00
Clippy 1.99 : as_chunks au lieu de chunks_exact(4) pour la vignette
Le clippy de la CI (Rust 1.99) refuse chunks_exact à taille constante (chunks_exact_to_as_chunks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tcGfJWefW5kUGoC2wL8cv
This commit is contained in:
1 file changed
+1
-1
@@ -578,7 +578,7 @@ impl ConvFiles {
|
||||
}
|
||||
// Fond blanc sous la transparence.
|
||||
let mut rgb = Vec::with_capacity(src.w * src.h * 3);
|
||||
for p in src.pix.chunks_exact(4) {
|
||||
for p in src.pix.as_chunks::<4>().0 {
|
||||
let a = p[3] as u32;
|
||||
for c in &p[..3] {
|
||||
rgb.push(((*c as u32 * a + 255 * (255 - a) + 127) / 255) as u8);
|
||||
|
||||
Reference in new issue
Block a user