cargo fmt

This commit is contained in:
Jonathan Behrens committed 2022-09-05 12:54:21 -07:00
1 parent fc0dafcde2
commit 907bbee576
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -351,9 +351,9 @@ impl<'a, W: 'a + Write + Seek, T: ColorType, K: TiffKind, D: Compression>
compression: D,
) -> TiffResult<Self> {
if width == 0 || height == 0 {
return Err(TiffError::FormatError(
TiffFormatError::InvalidDimensions(width, height),
));
return Err(TiffError::FormatError(TiffFormatError::InvalidDimensions(
width, height,
)));
}
let row_samples = u64::from(width) * u64::try_from(<T>::BITS_PER_SAMPLE.len())?;