Apply clippy lint

This commit is contained in:
Sergey "Shnatsel" Davidoff committed 2026-02-26 15:00:21 +00:00
1 parent 3f2066bb20
commit fdde3467fc
1 file changed
+1 -2
+1 -2
View File
@@ -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::<T::Inner>();
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);
}