Apply clippy lint
This commit is contained in:
1 parent
3f2066bb20
commit
fdde3467fc
1 file changed
+1
-2
+1
-2
@@ -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())?
|
self.encoder.write_data(row_result.as_slice())?
|
||||||
}
|
}
|
||||||
Predictor::FloatingPoint => {
|
Predictor::FloatingPoint => {
|
||||||
let byte_size = mem::size_of::<T::Inner>();
|
let mut row_result = Vec::with_capacity(std::mem::size_of_val(value));
|
||||||
let mut row_result = Vec::with_capacity(value.len() * byte_size);
|
|
||||||
for row in value.chunks_exact(self.row_samples as usize) {
|
for row in value.chunks_exact(self.row_samples as usize) {
|
||||||
T::floating_point_predict(row, &mut row_result);
|
T::floating_point_predict(row, &mut row_result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user