diff --git a/winit/src/application.rs b/winit/src/application.rs index a647a1b6..b9d5fed8 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -123,7 +123,7 @@ pub trait Application: Sized { Runtime::new(executor, Proxy::new(event_loop.create_proxy())) }; - let (mut application, init_command) = runtime.enter(|| Self::new()); + let (mut application, init_command) = runtime.enter(Self::new); runtime.spawn(init_command); let subscription = application.subscription();