mirror of
https://github.com/storytold/winit.git
synced 2026-11-30 02:08:57 +01:00
Remove 'static requirement on run
There's no need to force the static on the users, given that internally some backends were not using static in the first place. Co-authored-by: daxpedda <daxpedda@gmail.com>
This commit is contained in:
1 parent
02870202cb
commit
03bf83f45e
7 files changed
+43
-30
No files matched your search
@@ -526,8 +526,7 @@ impl<T: 'static> EventLoop<T> {
|
||||
|
||||
pub fn run<F>(mut self, event_handler: F) -> Result<(), RunLoopError>
|
||||
where
|
||||
F: 'static
|
||||
+ FnMut(event::Event<T>, &event_loop::EventLoopWindowTarget<T>, &mut ControlFlow),
|
||||
F: FnMut(event::Event<T>, &event_loop::EventLoopWindowTarget<T>, &mut ControlFlow),
|
||||
{
|
||||
self.run_ondemand(event_handler)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user