File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ annotate-snippets = { version = "0.9", features = ["color"] }
37
37
anyhow = " 1.0"
38
38
bytecount = " 0.6"
39
39
cargo_metadata = " 0.14"
40
- clap = { version = " 3 .1" , features = [" derive" ] }
40
+ clap = { version = " 4.2 .1" , features = [" derive" ] }
41
41
derive-new = " 0.5"
42
42
diff = " 0.1"
43
43
dirs = " 4.0"
@@ -48,10 +48,10 @@ itertools = "0.10"
48
48
lazy_static = " 1.4"
49
49
log = " 0.4"
50
50
regex = " 1.5"
51
- serde = { version = " 1.0" , features = [" derive" ] }
51
+ serde = { version = " 1.0.160 " , features = [" derive" ] }
52
52
serde_json = " 1.0"
53
53
term = " 0.7"
54
- thiserror = " 1.0"
54
+ thiserror = " 1.0.40 "
55
55
toml = " 0.5"
56
56
unicode-segmentation = " 1.9"
57
57
unicode-width = " 0.1"
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ use std::path::{Path, PathBuf};
14
14
use std:: process:: Command ;
15
15
use std:: str;
16
16
17
- use clap:: { AppSettings , CommandFactory , Parser } ;
17
+ use clap:: { CommandFactory , Parser } ;
18
18
19
19
#[ path = "test/mod.rs" ]
20
20
#[ cfg( test) ]
21
21
mod cargo_fmt_tests;
22
22
23
23
#[ derive( Parser ) ]
24
24
#[ clap(
25
- global_setting ( AppSettings :: NoAutoVersion ) ,
25
+ disable_version_flag = true ,
26
26
bin_name = "cargo fmt" ,
27
27
about = "This utility formats all bin and lib files of \
28
28
the current crate using rustfmt."
@@ -45,7 +45,7 @@ pub struct Opts {
45
45
short = 'p' ,
46
46
long = "package" ,
47
47
value_name = "package" ,
48
- multiple_values = true
48
+ num_args = 1 ..
49
49
) ]
50
50
packages : Vec < String > ,
51
51
You can’t perform that action at this time.
0 commit comments