Fix clippy warnings

config-extension
trivernis 2 years ago
parent a44b235f83
commit 0cad5f7d02
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -90,18 +90,18 @@ pub struct Partition {
#[derive(Clone, Debug, Deserialize, RustyValue)]
pub enum FileSystem {
VFAT,
BFS,
VFat,
Bfs,
CramFS,
Ext2,
Ext3,
Ext4,
FAT,
MSDOS,
XFS,
BTRFS,
Fat,
Msdos,
Xfs,
Btrfs,
Minix,
F2FS,
F2fs,
}
#[derive(Clone, Debug, Deserialize, RustyValue)]
@ -131,7 +131,7 @@ pub enum DesktopConfig {
I3Gaps,
HerbstluftWM,
AwesomeWM,
BSPWM,
Bspwm,
}
pub type ExtraPackages = Vec<String>;

@ -68,5 +68,5 @@ fn config_is_falsy(config: &embed_nu::Value) -> bool {
} else if let Ok(b) = config.as_bool() {
return !b;
}
return false;
false
}

@ -37,10 +37,7 @@ impl Task {
pub fn compare(&self, other: &Self) -> Ordering {
if self.is_base() && other.is_custom() {
Ordering::Less
} else if self.is_custom() && other.is_base() {
Ordering::Greater
} else {
if self.order() > other.order() {
} else if self.is_custom() && other.is_base() || self.order() > other.order() {
Ordering::Greater
} else if self.order() < other.order() {
Ordering::Less
@ -48,7 +45,6 @@ impl Task {
Ordering::Equal
}
}
}
}
impl TaskTrait for Task {

Loading…
Cancel
Save