Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Cargo clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Sep 8, 2022
1 parent 7fc11e4 commit aff07d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
5 changes: 3 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
14 changes: 2 additions & 12 deletions src/functions/desktops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
3 changes: 2 additions & 1 deletion src/internal/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit aff07d1

Please sign in to comment.