1
0
Fork 0

Change unwrap() to unwrap_or(1.0)

This commit is contained in:
Billy Messenger 2020-09-05 17:33:41 -05:00
parent 08390d6004
commit 147037e639

View file

@ -105,8 +105,7 @@ impl<A: AppWindow> Window<A> {
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,