mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove extra structs, keep gobject constructors only
This commit is contained in:
parent
ae1d3531bf
commit
70e0320067
3 changed files with 56 additions and 77 deletions
|
|
@ -1,9 +1,6 @@
|
|||
mod failure;
|
||||
mod loading;
|
||||
|
||||
use failure::Failure;
|
||||
use loading::Loading;
|
||||
|
||||
use adw::StatusPage;
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
@ -23,9 +20,7 @@ impl Status {
|
|||
icon_name: Option<&str>,
|
||||
) -> Self {
|
||||
Self {
|
||||
gobject: Failure::new(title, description, icon_name)
|
||||
.gobject()
|
||||
.clone(),
|
||||
gobject: failure::new_gobject_from(title, description, icon_name),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -38,9 +33,7 @@ impl Status {
|
|||
show_with_delay: Option<Duration>,
|
||||
) -> Self {
|
||||
Self {
|
||||
gobject: Loading::new(title, description, show_with_delay)
|
||||
.gobject()
|
||||
.clone(),
|
||||
gobject: loading::new_gobject_from(title, description, show_with_delay),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue