From e718c432f3fbdf4c8836ace5ccfa70400e3a4fb1 Mon Sep 17 00:00:00 2001 From: Andrew Champion Date: Tue, 6 Dec 2022 15:27:11 +0000 Subject: [PATCH] Bench: update tiff 0.3 -> 0.8 --- Cargo.toml | 2 +- benches/parallel_write.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 699ec70..3bc0392 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ lazy_static = "1.4" rand = "0.7" rayon = "1" tempdir = "0.3" -tiff = "0.3" +tiff = "0.8" [profile.release] lto = true diff --git a/benches/parallel_write.rs b/benches/parallel_write.rs index ab105c8..fd0a8de 100644 --- a/benches/parallel_write.rs +++ b/benches/parallel_write.rs @@ -46,12 +46,12 @@ lazy_static! { while decoder.more_images() { match decoder.read_image().unwrap() { - DecodingResult::U8(_) => panic!("Expect u16 image!"), DecodingResult::U16(img) => { for p in img { pixels.push(p as i8); } } + _ => panic!("Expect u16 image!"), } decoder.next_image().unwrap();