Skip to content

Commit 3ec7e9a

Browse files
committed
bump deps to new versions that use syn 2.0
1 parent 9badeba commit 3ec7e9a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ annotate-snippets = { version = "0.9", features = ["color"] }
3737
anyhow = "1.0"
3838
bytecount = "0.6"
3939
cargo_metadata = "0.14"
40-
clap = { version = "3.1", features = ["derive"] }
40+
clap = { version = "4.2.1", features = ["derive"] }
4141
derive-new = "0.5"
4242
diff = "0.1"
4343
dirs = "4.0"
@@ -48,10 +48,10 @@ itertools = "0.10"
4848
lazy_static = "1.4"
4949
log = "0.4"
5050
regex = "1.5"
51-
serde = { version = "1.0", features = ["derive"] }
51+
serde = { version = "1.0.160", features = ["derive"] }
5252
serde_json = "1.0"
5353
term = "0.7"
54-
thiserror = "1.0"
54+
thiserror = "1.0.40"
5555
toml = "0.5"
5656
unicode-segmentation = "1.9"
5757
unicode-width = "0.1"

src/cargo-fmt/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ use std::path::{Path, PathBuf};
1414
use std::process::Command;
1515
use std::str;
1616

17-
use clap::{AppSettings, CommandFactory, Parser};
17+
use clap::{CommandFactory, Parser};
1818

1919
#[path = "test/mod.rs"]
2020
#[cfg(test)]
2121
mod 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

0 commit comments

Comments
 (0)