Clippy + FMT

axtloss/rework-partitioning
Michal S 2 years ago committed by Michal
parent ca0b326bb4
commit 08ce6aa81b

@ -276,12 +276,7 @@ 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");
} }

@ -55,7 +55,11 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
format!("Add user {} to wheel group", username).as_str(), format!("Add user {} to wheel group", username).as_str(),
); );
files_eval( files_eval(
files::sed_file("/mnt/etc/sudoers", "# %wheel ALL=(ALL) ALL", "%wheel ALL=(ALL) ALL"), files::sed_file(
"/mnt/etc/sudoers",
"# %wheel ALL=(ALL) ALL",
"%wheel ALL=(ALL) ALL",
),
"Add wheel group to sudoers", "Add wheel group to sudoers",
); );
files_eval( files_eval(

@ -10,7 +10,7 @@ pub fn exec_chroot(
args: Vec<String>, args: Vec<String>,
) -> Result<std::process::ExitStatus, std::io::Error> { ) -> Result<std::process::ExitStatus, std::io::Error> {
let returncode = Command::new("bash") let returncode = Command::new("bash")
.args(&[ .args([
"-c", "-c",
format!("arch-chroot /mnt {} {}", command, args.join(" ")).as_str(), format!("arch-chroot /mnt {} {}", command, args.join(" ")).as_str(),
]) ])

Loading…
Cancel
Save