fixed all cargo warns

i18n
jnats 3 years ago
parent 63a659fe87
commit 8633544015

@ -1,4 +1,4 @@
use std::{fs, env};
use std::fs;
pub fn clearcache() {
let path = format!("{}/.cache/ame/", std::env::var("HOME").unwrap());

@ -15,10 +15,11 @@ pub fn clone(pkg: &str) {
println!("Cloning {} ...", pkg);
Repository::clone(&url, &path).unwrap();
println!("Installing {} ...", pkg);
env::set_current_dir(&cachedir);
env::set_current_dir(&cachedir).expect(&error);
Command::new("makepkg")
.arg("--noconfirm")
.arg("-si")
.spawn();
.spawn()
.expect(&error);
}
}

Loading…
Cancel
Save