Skip to content

Commit

Permalink
chore: should not use unwrap in eventloop dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Jul 14, 2024
1 parent 587ca99 commit 7685be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sessionlockev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ impl<T: Debug + 'static> WindowState<T> {
.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() {
Expand Down

0 comments on commit 7685be0

Please sign in to comment.