From 147037e63901d07d6eebfb7dc2fa8bef3ddf5577 Mon Sep 17 00:00:00 2001 From: Billy Messenger Date: Sat, 5 Sep 2020 17:33:41 -0500 Subject: [PATCH] Change unwrap() to unwrap_or(1.0) --- src/x11/window.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/x11/window.rs b/src/x11/window.rs index fe6f789..3f23726 100644 --- a/src/x11/window.rs +++ b/src/x11/window.rs @@ -105,8 +105,7 @@ impl Window { let scaling = get_scaling_xft(&xcb_connection) .or(get_scaling_screen_dimensions(&xcb_connection)) - .or(Some(1.0)) - .unwrap(); + .unwrap_or(1.0); let window_info = WindowInfo { width: options.width as u32,