Cargo clippy + fmt

axtloss/rework-partitioning
axtloss 2 years ago
parent b7947189c9
commit 59a4a80010

@ -240,8 +240,9 @@ pub struct NewUserArgs {
#[derive(Debug, ArgEnum, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Serialize, Deserialize)]
pub enum DesktopSetup {
//#[clap(name = "onyx")]
//Onyx,
#[clap(name = "onyx")]
Onyx,
#[clap(name = "gnome")]
Gnome,

@ -276,22 +276,12 @@ fn install_kde() {
}
fn install_gnome() {
install(vec![
"xorg",
"gnome",
"sushi",
"gdm"
]);
install(vec!["xorg", "gnome", "sushi", "gdm"]);
enable_dm("gdm");
}
fn install_onyx() {
install(vec![
"xorg",
"onyx",
"sushi",
"gdm"
]);
install(vec!["xorg", "onyx", "sushi", "gdm"]);
enable_dm("gdm");
}

@ -165,8 +165,9 @@ pub fn read_config(configpath: PathBuf) {
desktops::install_desktop_setup(*desktop);
}*/
match config.desktop.to_lowercase().as_str() {
// "onyx" => desktops::install_desktop_setup(DesktopSetup::Onyx),
"onyx" => desktops::install_desktop_setup(DesktopSetup::Onyx),
"kde" => desktops::install_desktop_setup(DesktopSetup::Kde),
"plasma" => desktops::install_desktop_setup(DesktopSetup::Kde),
"mate" => desktops::install_desktop_setup(DesktopSetup::Mate),
"gnome" => desktops::install_desktop_setup(DesktopSetup::Gnome),
"cinnamon" => desktops::install_desktop_setup(DesktopSetup::Cinnamon),

Loading…
Cancel
Save