Remove EventLoopError::AlreadyRunning
This is already prevented by the type-system, and as such it doesn't make sense to have an error case for this.
This commit is contained in:
parent
f204467838
commit
f526a47152
9 changed files with 15 additions and 29 deletions
|
|
@ -279,10 +279,6 @@ impl<T> EventLoop<T> {
|
|||
where
|
||||
F: FnMut(Event<T>, &RootWindowTarget),
|
||||
{
|
||||
if self.delegate.is_running() {
|
||||
return Err(EventLoopError::AlreadyRunning);
|
||||
}
|
||||
|
||||
let callback = map_user_event(callback, self.receiver.clone());
|
||||
|
||||
// # Safety
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue