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 2024-01-29 19:06:03 +01:00 committed by GitHub
parent f204467838
commit f526a47152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 29 deletions

View file

@ -143,10 +143,6 @@ impl<T> EventLoopRunner<T> {
}
}
pub fn state(&self) -> RunnerState {
self.runner_state.get()
}
pub fn set_control_flow(&self, control_flow: ControlFlow) {
self.control_flow.set(control_flow)
}