From 01bc95c2a3dcaf0c2916a2d2891094e1dc1e11e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 29 Mar 2020 15:22:56 +0200 Subject: [PATCH] Remove redundant closure in `Application::run` --- winit/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();