diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2020-08-14 15:59:10 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-08-14 15:59:10 +0200 |
| commit | 0790f025602d784d3f4cb42beb1b2c82ed91d341 (patch) | |
| tree | 2b41844d780f7baf0fb6cda18c1cdaf921dd7956 | |
| parent | d94f70ec81d291b5d8d348c40058e25e81e07562 (diff) | |
| download | mullvadvpn-0790f025602d784d3f4cb42beb1b2c82ed91d341.tar.xz mullvadvpn-0790f025602d784d3f4cb42beb1b2c82ed91d341.zip | |
Upgrade clap to 2.33.3 and remove deprecated warning hack
| -rw-r--r-- | Cargo.lock | 12 | ||||
| -rw-r--r-- | mullvad-daemon/src/cli.rs | 6 |
2 files changed, 7 insertions, 11 deletions
diff --git a/Cargo.lock b/Cargo.lock index dc75be1503..1c7a581d0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,7 +259,7 @@ dependencies = [ [[package]] name = "clap" -version = "2.33.0" +version = "2.33.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1362,7 +1362,7 @@ version = "2020.5.0" dependencies = [ "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "err-derive 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1384,7 +1384,7 @@ dependencies = [ "android_logger 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)", "ctrlc 3.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "duct 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1493,7 +1493,7 @@ dependencies = [ name = "mullvad-problem-report" version = "2020.5.0" dependencies = [ - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "duct 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1541,7 +1541,7 @@ dependencies = [ name = "mullvad-setup" version = "2020.5.0" dependencies = [ - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "err-derive 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "mullvad-ipc-client 0.1.0", @@ -3955,7 +3955,7 @@ dependencies = [ "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" "checksum cgmath 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)" = "64a4b57c8f4e3a2e9ac07e0f6abc9c24b6fc9e1b54c3478cfb598f3d0023e51c" "checksum chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e8493056968583b0193c1bb04d6f7684586f3726992d6c573261941a895dbd68" -"checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9" +"checksum clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)" = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" "checksum colored 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6cdb90b60f2927f8d76139c72dbde7e10c3a2bc47c8594c9c7a66529f2687c03" "checksum combine 3.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680" diff --git a/mullvad-daemon/src/cli.rs b/mullvad-daemon/src/cli.rs index 870b15a624..4abf8eb44c 100644 --- a/mullvad-daemon/src/cli.rs +++ b/mullvad-daemon/src/cli.rs @@ -66,6 +66,7 @@ lazy_static::lazy_static! { fn create_app() -> App<'static, 'static> { let mut app = App::new(crate_name!()) .version(version::PRODUCT_VERSION) + .author(crate_authors!(", ")) .about(crate_description!()) .after_help(ENV_DESC.as_str()) .arg( @@ -84,11 +85,6 @@ fn create_app() -> App<'static, 'static> { .long("disable-stdout-timestamps") .help("Don't log timestamps when logging to stdout, useful when running as a systemd service") ); - // A workaround since clap 2 will not fix the deprecation warnings in this macro. - #[allow(deprecated)] - { - app = app.author(crate_authors!(", ")); - } if cfg!(windows) { app = app.arg( |
