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;
}
impl Application {
pub fn new() -> Self {
glib::Object::builder()
impl Default for Application {
fn default() -> Self {
glib::Object::builder::<Application>()
.property("application-id", "eu.callcc.audrey")
.property("flags", gio::ApplicationFlags::default())
.build()
}
}
impl Application {
pub fn new() -> Self {
Self::default()
}
}