cleanup server code

This commit is contained in:
Ferdinand Schober
2023-12-15 20:24:14 +01:00
parent 0c275bc2de
commit 5fc02d471b
3 changed files with 30 additions and 62 deletions

View File

@@ -566,7 +566,6 @@ impl Stream for WaylandEventProducer {
type Item = io::Result<(ClientHandle, Event)>;
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
log::trace!("producer.next()");
if let Some(event) = self.0.get_mut().state.pending_events.pop_front() {
return Poll::Ready(Some(Ok(event)));
}