Update gtk-rs deps for return value nullability trust

This commit is contained in:
Christopher Davis 2022-01-08 22:18:12 -08:00
parent be09d49756
commit fc6d3668c0
3 changed files with 30 additions and 32 deletions

View file

@ -364,9 +364,7 @@ impl LpWindow {
}
let display = gdk::Display::default().unwrap();
let monitor = display
.monitor_at_surface(&self.native().unwrap().surface().unwrap())
.unwrap();
let monitor = display.monitor_at_surface(&self.native().unwrap().surface());
let monitor_geometry = monitor.geometry();
let monitor_width = monitor_geometry.width();