From 7c4a6fae0876ef5dc672078b4ee97a92746c1ece Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Mon, 18 Jul 2022 19:36:35 -0700 Subject: [PATCH] Update src/decoder/mod.rs --- src/decoder/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index f54d3f2..8c76767 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -1182,8 +1182,8 @@ impl Decoder { /// Returns the size of the data in the chunk with the specified index. This is the default size of the chunk, /// minus any padding. - pub fn chunk_data_dimensions(&self, chunk_index: u32) -> TiffResult<(u32, u32)> { - self.image().chunk_data_dimensions(chunk_index) + pub fn chunk_data_dimensions(&self, chunk_index: u32) -> (u32, u32) { + self.image().chunk_data_dimensions(chunk_index).expect("invalid chunk_index") } /// Decodes the entire image and return it as a Vector