Revert "Remove 'static' bound for P::State in Program::run_with"

This reverts commit cab9dec626.

Wasm needs the `'static'` bound since the runtime
will run in a background task.
This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 19:53:02 +01:00
parent cab9dec626
commit eb67aa5d71
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 7 additions and 6 deletions

View file

@ -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,