From c6b0c67d1285851c9572d981cd8d50ded6f8bd09 Mon Sep 17 00:00:00 2001 From: Kornel Date: Sat, 15 Jan 2022 18:56:48 +0000 Subject: [PATCH] Avoid deprecated function --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a2d7184..c04be07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ use load_image::*; use std::path::Path; fn load(attr: &Dssim, path: &Path) -> Result, 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)),