diff options
author | cc <cc@localhost> | 2025-08-20 18:13:53 -0700 |
---|---|---|
committer | cc <cc@localhost> | 2025-08-20 18:13:53 -0700 |
commit | b54ea6a51b16642dc59b2d2ba4d747cf683ec418 (patch) | |
tree | 38bf0cb4fdcc62e8ed82be39354beb0a74b2cefc /src/lib.rs | |
parent | c8190c1a8931749ff6408a39d791ba99fc0266eb (diff) |
Reduce warnings
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -mod tiff; +pub mod tiff; pub const TEST_IMAGE_PATH: &str = "../test.tif"; @@ -56,6 +56,7 @@ mod tests { tiff::ignore_warnings(); if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) { let channels = tiff::get_image_channels(t_handle); + assert!(channels > 0); tiff::close(t_handle); } else { assert!(false); @@ -66,7 +67,7 @@ mod tests { fn tiff_read() { tiff::ignore_warnings(); if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) { - let data = tiff::read(t_handle); + let _data = tiff::read(t_handle); tiff::close(t_handle); } else { assert!(false); |