Remove redundant closure in Application::run

This commit is contained in:
Héctor Ramón Jiménez 2020-03-29 15:22:56 +02:00
parent 3f6c6b7b02
commit 01bc95c2a3

View File

@ -123,7 +123,7 @@ pub trait Application: Sized {
Runtime::new(executor, Proxy::new(event_loop.create_proxy())) 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); runtime.spawn(init_command);
let subscription = application.subscription(); let subscription = application.subscription();