Skip to content

Commit c6b0c67

Browse files
committed
Avoid deprecated function
1 parent 8167c36 commit c6b0c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use load_image::*;
88
use std::path::Path;
99

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

0 commit comments

Comments
 (0)