Skip to content

Commit

Permalink
Fix deprecated API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Nov 19, 2020
1 parent 5a7e821 commit c885f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder/png_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
let final_image = image::open(&destination).unwrap();
let empty = Rgb::from([0u8, 0, 0]);
assert_eq!(
final_image.to_rgb().pixels().copied().collect_vec(),
final_image.to_rgb8().pixels().copied().collect_vec(),
vec![empty, empty, empty, Rgb::from([1, 2, 3])]
);
}
Expand Down

0 comments on commit c885f12

Please sign in to comment.