forked from mirrors/gstreamer-rs
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.
This commit is contained in:
parent
7e7f358ba2
commit
a65d2df25c
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue