clippy idiomacy
This commit is contained in:
parent
879dc39c27
commit
a8453e6e3d
1 changed files with 9 additions and 3 deletions
|
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue