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:
Mads Marquart authored and GitHub committed 2024-01-29 22:06:03 +04:00
1 parent f204467838
commit f526a47152
9 files changed
+15 -29

No files matched your search

-4
View File
@@ -491,10 +491,6 @@ impl<T: 'static> EventLoop<T> {
where
F: FnMut(event::Event<T>, &event_loop::EventLoopWindowTarget),
{
if self.loop_running {
return Err(EventLoopError::AlreadyRunning);
}
loop {
match self.pump_events(None, &mut event_handler) {
PumpStatus::Exit(0) => {