From a8453e6e3d85b793a3b7340b0d6ed10c16153df3 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 30 Oct 2024 04:26:53 +0100 Subject: [PATCH] clippy idiomacy --- src/application.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/application.rs b/src/application.rs index a2f1509..da1d5ac 100644 --- a/src/application.rs +++ b/src/application.rs @@ -39,11 +39,17 @@ glib::wrapper! { @implements gio::ActionGroup, gio::ActionMap; } -impl Application { - pub fn new() -> Self { - glib::Object::builder() +impl Default for Application { + fn default() -> Self { + glib::Object::builder::() .property("application-id", "eu.callcc.audrey") .property("flags", gio::ApplicationFlags::default()) .build() } } + +impl Application { + pub fn new() -> Self { + Self::default() + } +}