diff --git a/src/backend/consumer/wlroots.rs b/src/backend/consumer/wlroots.rs index 6328a84a..65f8e4dc 100644 --- a/src/backend/consumer/wlroots.rs +++ b/src/backend/consumer/wlroots.rs @@ -56,8 +56,8 @@ pub(crate) struct WlrootsConsumer { impl WlrootsConsumer { pub fn new() -> Result { - let conn = Connection::connect_to_env().unwrap(); - let (globals, queue) = registry_queue_init::(&conn).unwrap(); + let conn = Connection::connect_to_env()?; + let (globals, queue) = registry_queue_init::(&conn)?; let qh = queue.handle(); let seat: wl_seat::WlSeat = match globals.bind(&qh, 7..=8, ()) {