about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2023-04-12 18:54:32 +0800
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2023-06-19 09:46:37 -0500
commit7d48be355a6342690b48fc0675103ae822024e71 (patch)
treeb475551b61fb7700a38cda3cdf19b977352600b1
parent8d95c269ed83da89c53cef4fd17cca88e7ab1aa8 (diff)
downloadrust-7d48be355a6342690b48fc0675103ae822024e71.tar.gz
rust-7d48be355a6342690b48fc0675103ae822024e71.zip
bump deps to new versions that use syn 2.0
-rw-r--r--Cargo.toml6
-rw-r--r--src/cargo-fmt/main.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 12ed65453e1..78b970c4c98 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,7 +37,7 @@ annotate-snippets = { version = "0.9", features = ["color"] }
 anyhow = "1.0"
 bytecount = "0.6"
 cargo_metadata = "0.14"
-clap = { version = "3.1", features = ["derive"] }
+clap = { version = "4.2.1", features = ["derive"] }
 derive-new = "0.5"
 diff = "0.1"
 dirs = "4.0"
@@ -48,10 +48,10 @@ itertools = "0.10"
 lazy_static = "1.4"
 log = "0.4"
 regex = "1.5"
-serde = { version = "1.0", features = ["derive"] }
+serde = { version = "1.0.160", features = ["derive"] }
 serde_json = "1.0"
 term = "0.7"
-thiserror = "1.0"
+thiserror = "1.0.40"
 toml = "0.5"
 unicode-segmentation = "1.9"
 unicode-width = "0.1"
diff --git a/src/cargo-fmt/main.rs b/src/cargo-fmt/main.rs
index 2b714b68df0..a106181ec7e 100644
--- a/src/cargo-fmt/main.rs
+++ b/src/cargo-fmt/main.rs
@@ -14,7 +14,7 @@ use std::path::{Path, PathBuf};
 use std::process::Command;
 use std::str;
 
-use clap::{AppSettings, CommandFactory, Parser};
+use clap::{CommandFactory, Parser};
 
 #[path = "test/mod.rs"]
 #[cfg(test)]
@@ -22,7 +22,7 @@ mod cargo_fmt_tests;
 
 #[derive(Parser)]
 #[clap(
-    global_setting(AppSettings::NoAutoVersion),
+    disable_version_flag = true,
     bin_name = "cargo fmt",
     about = "This utility formats all bin and lib files of \
              the current crate using rustfmt."
@@ -45,7 +45,7 @@ pub struct Opts {
         short = 'p',
         long = "package",
         value_name = "package",
-        multiple_values = true
+        num_args = 1..
     )]
     packages: Vec<String>,