From 03d5bfae04eef01142436d098fe51c6dafeda39c Mon Sep 17 00:00:00 2001 From: cc Date: Wed, 20 Aug 2025 18:17:32 -0700 Subject: Capture Status Result --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index e1ee558..4649f0c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { -- cgit v1.2.1