File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 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"] }
3737anyhow = " 1.0"
3838bytecount = " 0.6"
3939cargo_metadata = " 0.14"
40- clap = { version = " 3 .1" , features = [" derive" ] }
40+ clap = { version = " 4.2 .1" , features = [" derive" ] }
4141derive-new = " 0.5"
4242diff = " 0.1"
4343dirs = " 4.0"
@@ -48,10 +48,10 @@ itertools = "0.10"
4848lazy_static = " 1.4"
4949log = " 0.4"
5050regex = " 1.5"
51- serde = { version = " 1.0" , features = [" derive" ] }
51+ serde = { version = " 1.0.160 " , features = [" derive" ] }
5252serde_json = " 1.0"
5353term = " 0.7"
54- thiserror = " 1.0"
54+ thiserror = " 1.0.40 "
5555toml = " 0.5"
5656unicode-segmentation = " 1.9"
5757unicode-width = " 0.1"
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ use std::path::{Path, PathBuf};
1414use std:: process:: Command ;
1515use std:: str;
1616
17- use clap:: { AppSettings , CommandFactory , Parser } ;
17+ use clap:: { CommandFactory , Parser } ;
1818
1919#[ path = "test/mod.rs" ]
2020#[ cfg( test) ]
2121mod cargo_fmt_tests;
2222
2323#[ derive( Parser ) ]
2424#[ clap(
25- global_setting ( AppSettings :: NoAutoVersion ) ,
25+ disable_version_flag = true ,
2626 bin_name = "cargo fmt" ,
2727 about = "This utility formats all bin and lib files of \
2828 the current crate using rustfmt."
@@ -45,7 +45,7 @@ pub struct Opts {
4545 short = 'p' ,
4646 long = "package" ,
4747 value_name = "package" ,
48- multiple_values = true
48+ num_args = 1 ..
4949 ) ]
5050 packages : Vec < String > ,
5151
You can’t perform that action at this time.
0 commit comments