clippy idiomacy

This commit is contained in:
psykose 2024-10-30 04:26:53 +01:00
parent 879dc39c27
commit a8453e6e3d

View file

@ -39,11 +39,17 @@ glib::wrapper! {
@implements gio::ActionGroup, gio::ActionMap; @implements gio::ActionGroup, gio::ActionMap;
} }
impl Application { impl Default for Application {
pub fn new() -> Self { fn default() -> Self {
glib::Object::builder() glib::Object::builder::<Application>()
.property("application-id", "eu.callcc.audrey") .property("application-id", "eu.callcc.audrey")
.property("flags", gio::ApplicationFlags::default()) .property("flags", gio::ApplicationFlags::default())
.build() .build()
} }
} }
impl Application {
pub fn new() -> Self {
Self::default()
}
}