From a65d2df25c547fea88f4bdb2349a877fc0f734d7 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 12 Apr 2021 10:28:16 +0200 Subject: [PATCH] examples: Application::new always returns an application without Result Since https://github.com/gtk-rs/gtk-rs/pull/447, supposedly the native function is never returning a `NULL` `Application` hence it makes little sense to handle an "unreachable" error here. --- examples/src/bin/gtksink.rs | 2 +- examples/src/bin/gtkvideooverlay.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/bin/gtksink.rs b/examples/src/bin/gtksink.rs index 5d471ae19..88b3ca7a0 100644 --- a/examples/src/bin/gtksink.rs +++ b/examples/src/bin/gtksink.rs @@ -151,7 +151,7 @@ fn main() { gst::init().unwrap(); gtk::init().unwrap(); - let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); + let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); app.run(); diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index 082b6133d..109cfeb00 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -264,7 +264,7 @@ fn main() { gst::init().unwrap(); gtk::init().unwrap(); - let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); + let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); app.run();