Skip to content

Commit

Permalink
Avoid deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Jan 15, 2022
1 parent 8167c36 commit c6b0c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use load_image::*;
use std::path::Path;

fn load(attr: &Dssim, path: &Path) -> Result<DssimImage<f32>, lodepng::Error> {
let img = load_image::load_image(path, false)?;
let img = load_image::load_path(path, false)?;
Ok(match img.bitmap {
ImageData::RGB8(ref bitmap) => attr.create_image(&Img::new(bitmap.to_rgblu(), img.width, img.height)),
ImageData::RGB16(ref bitmap) => attr.create_image(&Img::new(bitmap.to_rgblu(), img.width, img.height)),
Expand Down

0 comments on commit c6b0c67

Please sign in to comment.