From d608cff9e9ecad24600233ab41e1774565c3a884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 26 Sep 2017 10:41:03 +0300 Subject: [PATCH] Fix build with latest GApplication API changes --- examples/src/bin/gtksink.rs | 3 +-- examples/src/bin/gtkvideooverlay.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/src/bin/gtksink.rs b/examples/src/bin/gtksink.rs index 74f2e43e3..cf00eb150 100644 --- a/examples/src/bin/gtksink.rs +++ b/examples/src/bin/gtksink.rs @@ -133,8 +133,7 @@ fn main() { app.connect_activate(create_ui); let args = env::args().collect::>(); - let args_ref = args.iter().map(|a| a.as_str()).collect::>(); - app.run(&args_ref); + app.run(&args); } #[cfg(not(feature = "gtksink"))] diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index 03001250f..ca8bf63a5 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -209,8 +209,7 @@ fn main() { app.connect_activate(create_ui); let args = env::args().collect::>(); - let args_ref = args.iter().map(|a| a.as_str()).collect::>(); - app.run(&args_ref); + app.run(&args); } #[cfg(not(feature = "gtkvideooverlay"))]