From f79efec7ef5c90b9aaeea3800bb733b8340fbefd Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Thu, 26 Nov 2020 01:20:35 +0100 Subject: [PATCH] Fix deprecation warning in the window icon example --- examples/window_icon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/window_icon.rs b/examples/window_icon.rs index aaa6bc0b..6c796255 100644 --- a/examples/window_icon.rs +++ b/examples/window_icon.rs @@ -49,7 +49,7 @@ fn load_icon(path: &Path) -> Icon { let (icon_rgba, icon_width, icon_height) = { let image = image::open(path) .expect("Failed to open icon path") - .into_rgba(); + .into_rgba8(); let (width, height) = image.dimensions(); let rgba = image.into_raw(); (rgba, width, height)