From fdde3467fc66a5d25277a90c05c1682c6384efdc Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Thu, 26 Feb 2026 15:00:21 +0000 Subject: [PATCH] Apply clippy lint --- src/encoder/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/encoder/mod.rs b/src/encoder/mod.rs index 6a1f6d1..23bf645 100644 --- a/src/encoder/mod.rs +++ b/src/encoder/mod.rs @@ -778,8 +778,7 @@ impl<'a, W: 'a + Write + Seek, T: ColorType, K: TiffKind> ImageEncoder<'a, W, T, self.encoder.write_data(row_result.as_slice())? } Predictor::FloatingPoint => { - let byte_size = mem::size_of::(); - let mut row_result = Vec::with_capacity(value.len() * byte_size); + let mut row_result = Vec::with_capacity(std::mem::size_of_val(value)); for row in value.chunks_exact(self.row_samples as usize) { T::floating_point_predict(row, &mut row_result); }