Change unwrap() to unwrap_or(1.0)
This commit is contained in:
parent
08390d6004
commit
147037e639
|
@ -105,8 +105,7 @@ impl<A: AppWindow> Window<A> {
|
||||||
|
|
||||||
let scaling = get_scaling_xft(&xcb_connection)
|
let scaling = get_scaling_xft(&xcb_connection)
|
||||||
.or(get_scaling_screen_dimensions(&xcb_connection))
|
.or(get_scaling_screen_dimensions(&xcb_connection))
|
||||||
.or(Some(1.0))
|
.unwrap_or(1.0);
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let window_info = WindowInfo {
|
let window_info = WindowInfo {
|
||||||
width: options.width as u32,
|
width: options.width as u32,
|
||||||
|
|
Loading…
Reference in a new issue