Skip to content

Commit

Permalink
fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Mar 9, 2024
1 parent 82895f7 commit 0799bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/jpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mod tests {
fn image_encoder() -> Result<()> {
let jpeg_data_fs = std::fs::read("tests/data/dog.jpeg")?;
let image = ImageDecoder::new()?.decode(&jpeg_data_fs)?;
let jpeg_data = ImageEncoder::new()?.encode(image)?;
let jpeg_data = ImageEncoder::new()?.encode(&image)?;
let image_back = ImageDecoder::new()?.decode(&jpeg_data)?;
assert_eq!(image_back.image_size().width, 258);
assert_eq!(image_back.image_size().height, 195);
Expand Down

0 comments on commit 0799bce

Please sign in to comment.