From 7685be0c9d18327076cba53ab15edc4be2998e4c Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 14 Jul 2024 17:47:10 +0859 Subject: [PATCH] chore: should not use unwrap in eventloop dispatch --- sessionlockev/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessionlockev/src/lib.rs b/sessionlockev/src/lib.rs index 0deb624..f1bd0e5 100644 --- a/sessionlockev/src/lib.rs +++ b/sessionlockev/src/lib.rs @@ -914,7 +914,7 @@ impl WindowState { .expect("Failed to init Wayland Source"); 'out: loop { - event_loop.dispatch(Duration::from_millis(1), self).unwrap(); + event_loop.dispatch(Duration::from_millis(1), self)?; let mut messages = Vec::new(); std::mem::swap(&mut messages, &mut self.message); for msg in messages.iter() {