fmt and set clap ver

i18n
michal 2 years ago
parent 13009935f6
commit 046aac029b

@ -8,6 +8,6 @@ description = "A fast and efficient aur helper."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "*"
clap = "2.34.0"
reqwest = { version = "0.11.7", default-features = false, features = [ "blocking", "json", "default-tls" ] }
serde = { version = "1.0.90", default-features = false, features = [ "derive" ] }

@ -1,8 +1,8 @@
mod operations;
mod internal;
mod operations;
use clap::{App, Arg, SubCommand};
use crate::internal::sort;
use clap::{App, Arg, SubCommand};
fn main() {
let matches = App::new("Amethyst")
@ -65,7 +65,9 @@ fn main() {
.unwrap()
.values_of("package(s)")
.unwrap()
.into_iter().map(|s| s.to_string()).collect();
.into_iter()
.map(|s| s.to_string())
.collect();
if let true = matches.is_present("install") {
let sorted = sort(&packages, verbosity);

Loading…
Cancel
Save