diff options
| author | 2024-05-07 15:50:18 +0200 | |
|---|---|---|
| committer | 2024-05-07 16:07:56 +0200 | |
| commit | 2645524f88414393d8b3ca9c6fe801b32b5ebd33 (patch) | |
| tree | 9fad3313f97bcc5ca9c75c2c7ca08eb21ff578a2 /src | |
| parent | db07b9ba9ef20c5995076992bf5592af12698000 (diff) | |
| download | iced-2645524f88414393d8b3ca9c6fe801b32b5ebd33.tar.gz iced-2645524f88414393d8b3ca9c6fe801b32b5ebd33.tar.bz2 iced-2645524f88414393d8b3ca9c6fe801b32b5ebd33.zip | |
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)?)      }  } | 
