From 669508046dac06bed4814afa46f602808436d7f4 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sun, 30 Sep 2018 12:14:11 +0200 Subject: [PATCH] Fix anvil --- anvil/src/udev.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/anvil/src/udev.rs b/anvil/src/udev.rs index 53e0ac7..2c1e156 100644 --- a/anvil/src/udev.rs +++ b/anvil/src/udev.rs @@ -147,9 +147,13 @@ pub fn run_udev(mut display: Display, mut event_loop: EventLoop<()>, log: Logger pointer_location, session, )); - let libinput_event_source = libinput_bind(libinput_backend, event_loop.handle()).unwrap(); + let libinput_event_source = libinput_bind(libinput_backend, event_loop.handle()) + .map_err(|(e, _)| e) + .unwrap(); - let session_event_source = auto_session_bind(notifier, &event_loop.handle()).unwrap(); + let session_event_source = auto_session_bind(notifier, &event_loop.handle()) + .map_err(|(e, _)| e) + .unwrap(); let udev_event_source = udev_backend_bind(udev_backend).unwrap(); while running.load(Ordering::SeqCst) {