From 9c8afb09ba0aba965cc948011991a1ac4af126c7 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 24 Oct 2026 04:16:56 +0700 Subject: [PATCH] Image encoders: rustfmt --- crates/render/src/encode/quantize.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/render/src/encode/quantize.rs b/crates/render/src/encode/quantize.rs index 5b3a08b29..ec04c9f46 100644 --- a/crates/render/src/encode/quantize.rs +++ b/crates/render/src/encode/quantize.rs @@ -198,7 +198,8 @@ pub fn quantize_locked(rgba: &[u8], width: u32, height: u32, o: &PaletteOptions, let weights = o.reduction.weights(); let dither = if exact { Dither::None } else { o.dither }; // (A width past the pixels there are would size the error rows from a number nothing checked.) - let mut indices = map(&colors, (width as usize).min(colors.len()), &palette, weights, dither, f32::from(o.dither_amount.min(100)) / 100.0, |i| clear(&px[i])); + let mut indices = + map(&colors, (width as usize).min(colors.len()), &palette, weights, dither, f32::from(o.dither_amount.min(100)) / 100.0, |i| clear(&px[i])); // Drop the entries no pixel uses (fixed palettes), keeping the order. let mut used = [false; 256]; for (i, &ix) in indices.iter().enumerate() {