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;
|
||||
}
|
||||
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue