mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
Rearchitect to allow API compliance
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user