diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ mod tests { fn tiff_width_test() { tiff::ignore_warnings(); if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) { - let width = tiff::get_image_width(t_handle); + let width = tiff::get_image_width(t_handle).expect("Image should have width!"); assert!(width > 0); tiff::close(t_handle); } else { @@ -43,7 +43,7 @@ mod tests { fn tiff_height_test() { tiff::ignore_warnings(); if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) { - let height = tiff::get_image_height(t_handle); + let height = tiff::get_image_height(t_handle).expect("Image should have height!"); assert!(height > 0); tiff::close(t_handle); } else { |