GTK: more match improvements in WindowHandle
@@ -418,14 +418,11 @@ impl WindowHandle {
/// Close the window.
pub fn close(&self) {
use gtk::GtkApplicationExt;
- match self.window.as_ref() {
- Some(window) => {
+ if let Some(window) = self.window.as_ref() {
with_application(|app| {
app.remove_window(window);
});
}
- None => return,
- }
}
// Request invalidation of the entire window contents.
