summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 19:53:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 19:53:02 +0100
commiteb67aa5d71172569e3d404107a1a449998d98d42 (patch)
tree50f8c8264cdb5b2a09c440b7f598e5aa23846120 /winit/src/application.rs
parentcab9dec6267f3e38b2dee2a0262cd04e21a7519e (diff)
downloadiced-eb67aa5d71172569e3d404107a1a449998d98d42.tar.gz
iced-eb67aa5d71172569e3d404107a1a449998d98d42.tar.bz2
iced-eb67aa5d71172569e3d404107a1a449998d98d42.zip
Revert "Remove `'static'` bound for `P::State` in `Program::run_with`"
This reverts commit cab9dec6267f3e38b2dee2a0262cd04e21a7519e. Wasm needs the `'static'` bound since the runtime will run in a background task.
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r--winit/src/application.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index ba2bd07f..13d9282d 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -133,8 +133,7 @@ pub async fn run<A, E, C>(
compositor_settings: C::Settings,
) -> Result<(), Error>
where
- A: Application,
- A::Message: 'static,
+ A: Application + 'static,
E: Executor + 'static,
C: Compositor<Renderer = A::Renderer> + 'static,
A::Theme: DefaultStyle,
@@ -318,7 +317,7 @@ async fn run_instance<A, E, C>(
should_be_visible: bool,
exit_on_close_request: bool,
) where
- A: Application,
+ A: Application + 'static,
E: Executor + 'static,
C: Compositor<Renderer = A::Renderer> + 'static,
A::Theme: DefaultStyle,