diff options
author | 2024-05-08 09:23:53 +0200 | |
---|---|---|
committer | 2024-05-08 09:23:53 +0200 | |
commit | e07b42ac96b8d098a883c93afe828a439f479c7b (patch) | |
tree | 4858388c6b4e2f41a484164a72af53bdaf11f9f1 /src | |
parent | 247870f83bc12f3f4b549bb582f1058f5adcce25 (diff) | |
parent | 7e7285d60f08e9d32a796e9adf7e37535a67fc43 (diff) | |
download | iced-e07b42ac96b8d098a883c93afe828a439f479c7b.tar.gz iced-e07b42ac96b8d098a883c93afe828a439f479c7b.tar.bz2 iced-e07b42ac96b8d098a883c93afe828a439f479c7b.zip |
Merge pull request #2427 from iced-rs/winit-0.30
Update `winit` to `0.30`
Diffstat (limited to '')
-rw-r--r-- | src/application.rs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/application.rs b/src/application.rs index 9197834b..d12ba73d 100644 --- a/src/application.rs +++ b/src/application.rs @@ -212,26 +212,11 @@ where ..crate::graphics::Settings::default() }; - let run = crate::shell::application::run::< + Ok(crate::shell::application::run::< Instance<Self>, Self::Executor, <Self::Renderer as compositor::Default>::Compositor, - >(settings.into(), renderer_settings); - - #[cfg(target_arch = "wasm32")] - { - use crate::futures::FutureExt; - use iced_futures::backend::wasm::wasm_bindgen::Executor; - - Executor::new() - .expect("Create Wasm executor") - .spawn(run.map(|_| ())); - - Ok(()) - } - - #[cfg(not(target_arch = "wasm32"))] - Ok(crate::futures::executor::block_on(run)?) + >(settings.into(), renderer_settings)?) } } |