From 907bbee5768c6e5b927719539f9f59cde61ffdb0 Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Mon, 5 Sep 2022 12:54:21 -0700 Subject: [PATCH] cargo fmt --- src/decoder/image.rs | 6 +++--- src/encoder/mod.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/decoder/image.rs b/src/decoder/image.rs index 7adffc7..6a4fc65 100644 --- a/src/decoder/image.rs +++ b/src/decoder/image.rs @@ -98,9 +98,9 @@ impl Image { let width = tag_reader.require_tag(Tag::ImageWidth)?.into_u32()?; let height = tag_reader.require_tag(Tag::ImageLength)?.into_u32()?; if width == 0 || height == 0 { - return Err(TiffError::FormatError( - TiffFormatError::InvalidDimensions(width, height), - )); + return Err(TiffError::FormatError(TiffFormatError::InvalidDimensions( + width, height, + ))); } let photometric_interpretation = tag_reader diff --git a/src/encoder/mod.rs b/src/encoder/mod.rs index 924ed8c..6e39c93 100644 --- a/src/encoder/mod.rs +++ b/src/encoder/mod.rs @@ -351,9 +351,9 @@ impl<'a, W: 'a + Write + Seek, T: ColorType, K: TiffKind, D: Compression> compression: D, ) -> TiffResult { 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(::BITS_PER_SAMPLE.len())?;