Remove redundant closure in Application::run
This commit is contained in:
parent
3f6c6b7b02
commit
01bc95c2a3
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user