diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 3ba495e59..b494cd3be 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml @@ -15,6 +15,6 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa log = "0.4.14" nix = "0.22.1" libc = "0.2.101" -clap = { version = "3.0.0-beta.4", features = ["derive"] } +clap = { version = "3.0.0-beta.5", features = ["derive"] } rand_core = { version = "0.6.3", features = ["std"] } heapless = { version = "0.7.5", default-features = false } diff --git a/examples/std/src/bin/net.rs b/examples/std/src/bin/net.rs index c44f1c5b0..8abcc586f 100644 --- a/examples/std/src/bin/net.rs +++ b/examples/std/src/bin/net.rs @@ -1,6 +1,6 @@ #![feature(type_alias_impl_trait)] -use clap::{AppSettings, Clap}; +use clap::Parser; use embassy::executor::{Executor, Spawner}; use embassy::io::AsyncWriteExt; use embassy::util::Forever; @@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever = Forever::new(); static CONFIG_DYNAMIC: Forever = Forever::new(); static NET_RESOURCES: Forever> = Forever::new(); -#[derive(Clap)] +#[derive(Parser)] #[clap(version = "1.0")] -#[clap(setting = AppSettings::ColoredHelp)] struct Opts { /// TAP device name #[clap(long, default_value = "tap0")]