diff options
Diffstat (limited to 'src/x11/window/monitor.rs')
-rw-r--r-- | src/x11/window/monitor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/window/monitor.rs b/src/x11/window/monitor.rs index 013b48b..f62a8ef 100644 --- a/src/x11/window/monitor.rs +++ b/src/x11/window/monitor.rs @@ -9,7 +9,7 @@ pub fn get_available_monitors() -> Vec<MonitorID> { let nb_monitors = unsafe { let display = ffi::XOpenDisplay(ptr::null()); if display.is_null() { - fail!("get_available_monitors failed"); + panic!("get_available_monitors failed"); } let nb_monitors = ffi::XScreenCount(display); ffi::XCloseDisplay(display); @@ -26,7 +26,7 @@ pub fn get_primary_monitor() -> MonitorID { let primary_monitor = unsafe { let display = ffi::XOpenDisplay(ptr::null()); if display.is_null() { - fail!("get_available_monitors failed"); + panic!("get_available_monitors failed"); } let primary_monitor = ffi::XDefaultScreen(display); ffi::XCloseDisplay(display); |