diff --git a/src/window/icon.rs b/src/window/icon.rs index 58ca344e69..7ab5b6146f 100644 --- a/src/window/icon.rs +++ b/src/window/icon.rs @@ -11,6 +11,7 @@ pub struct Icon(iced_winit::winit::window::Icon); impl Icon { /// Creates an icon from 32bpp RGBA data. + #[cfg(not(target_arch = "wasm32"))] pub fn from_rgba( rgba: Vec, width: u32,