Skip to content

Commit 0ab740d

Browse files
committed
use 'derive' feature for clap instead of depending directly on clap_derive
1 parent 4fb92a7 commit 0ab740d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

espflash/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ binread = "2"
2020
bytemuck = { version = "1", features = ["derive"] }
2121
indicatif = "0.16"
2222
md5 = "0.7"
23-
clap = "3.0.0-rc.1"
24-
clap_derive = "3.0.0-rc.1"
23+
clap = { version = "3.0.0-rc.1", features = ["derive"] }
2524
serialport = "4"
2625
sha2 = "0.9"
2726
slip-codec = "0.3"

espflash/src/cli/clap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use clap_derive::Parser;
1+
use clap::Parser;
22

33
#[derive(Parser)]
44
pub struct ConnectArgs {

espflash/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ use std::{
44
str::FromStr,
55
};
66

7-
use clap::{AppSettings, IntoApp, Parser as _};
8-
use clap_derive::Parser;
7+
use clap::{AppSettings, IntoApp, Parser};
98
use espflash::{
109
cli::{clap::*, connect, monitor::monitor},
1110
Chip, Config, Error, FirmwareImage, ImageFormatId, PartitionTable,

0 commit comments

Comments
 (0)