Fix clippy warnings

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-05-09 12:34:06 +04:00
parent 205f86ac50
commit e5748eb17d
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ impl App {
fn new() -> Self {
let app = gtk::Application::new(Some("org.qemu.rdw.demo"), ApplicationFlags::NON_UNIQUE);
app.add_main_option(
&glib::OPTION_REMAINING,
glib::OPTION_REMAINING,
glib::Char(0),
glib::OptionFlags::NONE,
glib::OptionArg::StringArray,
@ -164,7 +164,7 @@ impl App {
app_opt.wait = true;
}
app_opt.vm_name = opt
.lookup_value(&glib::OPTION_REMAINING, None)
.lookup_value(glib::OPTION_REMAINING, None)
.and_then(|args| args.child_value(0).get::<String>());
-1
});