diff options
author | 2024-03-17 19:42:43 +0100 | |
---|---|---|
committer | 2024-03-17 19:42:43 +0100 | |
commit | cab9dec6267f3e38b2dee2a0262cd04e21a7519e (patch) | |
tree | d8df566d3f6f540f75cf902931045261c7784e1a /winit/src/application.rs | |
parent | cdb18e610a72b4a025d7e1890140393adee5b087 (diff) | |
download | iced-cab9dec6267f3e38b2dee2a0262cd04e21a7519e.tar.gz iced-cab9dec6267f3e38b2dee2a0262cd04e21a7519e.tar.bz2 iced-cab9dec6267f3e38b2dee2a0262cd04e21a7519e.zip |
Remove `'static'` bound for `P::State` in `Program::run_with`
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 13d9282d..ba2bd07f 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -133,7 +133,8 @@ pub async fn run<A, E, C>( compositor_settings: C::Settings, ) -> Result<(), Error> where - A: Application + 'static, + A: Application, + A::Message: 'static, E: Executor + 'static, C: Compositor<Renderer = A::Renderer> + 'static, A::Theme: DefaultStyle, @@ -317,7 +318,7 @@ async fn run_instance<A, E, C>( should_be_visible: bool, exit_on_close_request: bool, ) where - A: Application + 'static, + A: Application, E: Executor + 'static, C: Compositor<Renderer = A::Renderer> + 'static, A::Theme: DefaultStyle, |