mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update cargo_metadata to 0.23.
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ color-print = "0.3.4"
|
||||
anstream = "0.6.18"
|
||||
|
||||
[dev-dependencies]
|
||||
cargo_metadata = "0.18.1"
|
||||
cargo_metadata = "0.23"
|
||||
ui_test = "0.30.2"
|
||||
regex = "1.5.5"
|
||||
serde = { version = "1.0.145", features = ["derive"] }
|
||||
|
||||
@@ -10,7 +10,7 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
arrayvec = { version = "0.7", default-features = false }
|
||||
cargo_metadata = "0.18"
|
||||
cargo_metadata = "0.23"
|
||||
clippy_config = { path = "../clippy_config" }
|
||||
clippy_utils = { path = "../clippy_utils" }
|
||||
declare_clippy_lint = { path = "../declare_clippy_lint" }
|
||||
|
||||
@@ -32,7 +32,7 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata, allowed_duplicate
|
||||
{
|
||||
for (name, group) in &packages
|
||||
.iter()
|
||||
.filter(|p| !allowed_duplicate_crates.contains(&p.name))
|
||||
.filter(|p| !allowed_duplicate_crates.contains(p.name.as_str()))
|
||||
.group_by(|p| &p.name)
|
||||
{
|
||||
let group: Vec<&Package> = group.collect();
|
||||
|
||||
@@ -10,7 +10,7 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) {
|
||||
// VersionReq::any() does not work
|
||||
if let Ok(wildcard_ver) = semver::VersionReq::parse("*")
|
||||
&& let Some(ref source) = dep.source
|
||||
&& !source.starts_with("git")
|
||||
&& !source.repr.starts_with("git")
|
||||
&& dep.req == wildcard_ver
|
||||
{
|
||||
span_lint(
|
||||
|
||||
@@ -11,7 +11,7 @@ publish = false
|
||||
default-run = "lintcheck"
|
||||
|
||||
[dependencies]
|
||||
cargo_metadata = "0.15.3"
|
||||
cargo_metadata = "0.23"
|
||||
clap = { version = "4.4", features = ["derive", "env"] }
|
||||
crossbeam-channel = "0.5.6"
|
||||
diff = "0.1.13"
|
||||
|
||||
Reference in New Issue
Block a user