Skip to content

Commit

Permalink
Bench: update tiff 0.3 -> 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
aschampion committed Dec 6, 2022
1 parent 1bbd7ac commit e718c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion benches/parallel_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e718c43

Please sign in to comment.