diff --git a/Cargo.toml b/Cargo.toml index 661d0ab..60a244c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ tempfile-fast = "0.3" [dependencies.clap] optional = true -version = "2" +version = "3" [dependencies.digest] features = ["std"] diff --git a/src/bin/fapt.rs b/src/bin/fapt.rs index 4e9c11e..1be81aa 100644 --- a/src/bin/fapt.rs +++ b/src/bin/fapt.rs @@ -33,14 +33,14 @@ fn main() -> Result<(), anyhow::Error> { .arg( Arg::with_name("cache-dir") .long("cache-dir") - .short("c") + .short('c') .value_name("DIRECTORY") .help("explicitly set the cache directory"), ) .arg( Arg::with_name("sources-line") .long("sources-line") - .short("r") + .short('r') .value_name("LINE") .multiple(true) .number_of_values(1) @@ -52,7 +52,7 @@ fn main() -> Result<(), anyhow::Error> { .arg( Arg::with_name("arch") .long("arch") - .short("a") + .short('a') .value_name("ARCH") .multiple(true) .number_of_values(1) @@ -130,10 +130,10 @@ fn main() -> Result<(), anyhow::Error> { system.set_dpkg_database(matches.value_of("system-dpkg").unwrap()); match matches.subcommand() { - ("source-ninja", Some(_)) => { + Some(("source-ninja", _)) => { commands::source_ninja(&system)?; } - ("update", _) => { + Some(("update", _)) => { system.update()?; } _ => unreachable!(),