mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-22 13:34:18 +02:00
feat: use derive attribute for default variant
This commit is contained in:
parent
e4abc917a2
commit
38aaecbef8
1 changed files with 2 additions and 7 deletions
|
|
@ -26,9 +26,10 @@ pub struct PackageInfo {
|
|||
pub removal: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub enum LoadingState {
|
||||
DownloadingList,
|
||||
#[default]
|
||||
FindingPhones,
|
||||
LoadingPackages,
|
||||
_UpdatingUad,
|
||||
|
|
@ -36,12 +37,6 @@ pub enum LoadingState {
|
|||
RestoringDevice(String),
|
||||
}
|
||||
|
||||
impl Default for LoadingState {
|
||||
fn default() -> Self {
|
||||
Self::FindingPhones
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub struct List {
|
||||
pub loading_state: LoadingState,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue