From 6087b0560481a2ef66320b44d269d871bd24482a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Fri, 18 Feb 2022 13:08:38 -0500 Subject: [PATCH] Clap 3.1 --- Cargo.toml | 2 +- examples/beep.rs | 2 +- examples/feedback.rs | 2 +- examples/record_wav.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 670450a..29c917d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ thiserror = "1.0.2" anyhow = "1.0.12" hound = "3.4" ringbuf = "0.2" -clap = { version = "3.0", default-features = false, features = ["std"] } +clap = { version = "3.1", default-features = false, features = ["std"] } [target.'cfg(target_os = "android")'.dev-dependencies] ndk-glue = "0.6" diff --git a/examples/beep.rs b/examples/beep.rs index 92716c8..264bcee 100644 --- a/examples/beep.rs +++ b/examples/beep.rs @@ -18,7 +18,7 @@ struct Opt { impl Opt { fn from_args() -> Self { - let app = clap::App::new("beep").arg(arg!([DEVICE] "The audio device to use")); + let app = clap::Command::new("beep").arg(arg!([DEVICE] "The audio device to use")); #[cfg(all( any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), feature = "jack" diff --git a/examples/feedback.rs b/examples/feedback.rs index 548ba3d..822041d 100644 --- a/examples/feedback.rs +++ b/examples/feedback.rs @@ -31,7 +31,7 @@ struct Opt { impl Opt { fn from_args() -> anyhow::Result { - let app = clap::App::new("beep") + let app = clap::Command::new("beep") .arg(arg!( -l --latency [DELAY_MS] "Specify the delay between input and output [default: 150]")) .arg(arg!([IN] "The input audio device to use")) diff --git a/examples/record_wav.rs b/examples/record_wav.rs index 767bfa1..f542101 100644 --- a/examples/record_wav.rs +++ b/examples/record_wav.rs @@ -26,7 +26,7 @@ struct Opt { impl Opt { fn from_args() -> Self { - let app = clap::App::new("beep").arg(arg!([DEVICE] "The audio device to use")); + let app = clap::Command::new("beep").arg(arg!([DEVICE] "The audio device to use")); #[cfg(all( any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), feature = "jack"