diff options
author | cc <cc@localhost> | 2025-08-20 18:17:32 -0700 |
---|---|---|
committer | cc <cc@localhost> | 2025-08-20 18:17:37 -0700 |
commit | 03d5bfae04eef01142436d098fe51c6dafeda39c (patch) | |
tree | 745f2ad9882e9115e6307f1de65a33b69203fb3d /src/lib.rs | |
parent | b54ea6a51b16642dc59b2d2ba4d747cf683ec418 (diff) |
Capture Status Result
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 { |