From f5e251fc8176000a9156e29b25e3a5f18229acc0 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 18 Oct 2021 01:19:01 +0200 Subject: [PATCH] Update clap --- examples/std/Cargo.toml | 2 +- examples/std/src/bin/net.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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")]