diff --git a/Cargo.toml b/Cargo.toml index 0514545..79508e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" ] } \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 2b5b539..0b9edb9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);