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:
parent
cad3277550
commit
8100a6a584
7 changed files with 43 additions and 30 deletions
|
|
@ -195,7 +195,7 @@ impl<T> EventLoop<T> {
|
|||
|
||||
pub fn run<F>(mut self, callback: F) -> Result<(), RunLoopError>
|
||||
where
|
||||
F: 'static + FnMut(Event<T>, &RootWindowTarget<T>, &mut ControlFlow),
|
||||
F: FnMut(Event<T>, &RootWindowTarget<T>, &mut ControlFlow),
|
||||
{
|
||||
self.run_ondemand(callback)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue