Rearchitect to allow API compliance

This commit is contained in:
Ryan Goldstein
2019-03-11 22:18:58 -04:00
parent 3dd0e31cc4
commit aaee72422a
4 changed files with 163 additions and 114 deletions

View File

@@ -139,7 +139,7 @@ impl<T> EventLoop<T> {
///
/// [`ControlFlow`]: ./enum.ControlFlow.html
#[inline]
pub fn run<F>(self, event_handler: F) // TODO: this needs to be !
pub fn run<F>(self, event_handler: F) -> !
where F: 'static + FnMut(Event<T>, &EventLoopWindowTarget<T>, &mut ControlFlow)
{
self.event_loop.run(event_handler)