Skip to content

Commit

Permalink
Remove deprecated use of image::jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Nov 15, 2020
1 parent 430d3eb commit 20cf3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl ImageWriter {
ImageWriter::Jpeg { quality } => {
let file = File::create(destination)?;
let fout = &mut BufWriter::new(file);
let mut encoder = image::jpeg::JpegEncoder::new_with_quality(fout, quality);
let mut encoder = image::codecs::jpeg::JpegEncoder::new_with_quality(fout, quality);
encoder.encode(image, image.width(), image.height(), Pix::COLOR_TYPE)?;
},
ImageWriter::Generic => {
Expand Down

0 comments on commit 20cf3c6

Please sign in to comment.