Cargo clippy + fmt

axtloss/rework-partitioning
axtloss 2 years ago
parent 7fc11e40e2
commit aff07d1d87

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

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

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

Loading…
Cancel
Save