Remove cargo_dev dependency

This commit is contained in:
Serial 2022-06-21 14:04:37 -04:00
parent 93c6f9ebed
commit 890fd0e3c1
2 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,6 @@ edition = "2021"
[dependencies] [dependencies]
cargo_metadata = "0.14" cargo_metadata = "0.14"
clippy_dev = { path = "../clippy_dev", optional = true }
clippy_utils = { path = "../clippy_utils" } clippy_utils = { path = "../clippy_utils" }
if_chain = "1.0" if_chain = "1.0"
itertools = "0.10.1" itertools = "0.10.1"
@ -32,7 +31,7 @@ url = { version = "2.2", features = ["serde"] }
[features] [features]
deny-warnings = ["clippy_utils/deny-warnings"] deny-warnings = ["clippy_utils/deny-warnings"]
# build clippy with internal lints enabled, off by default # build clippy with internal lints enabled, off by default
internal = ["clippy_utils/internal", "serde_json", "tempfile", "clippy_dev"] internal = ["clippy_utils/internal", "serde_json", "tempfile"]
[package.metadata.rust-analyzer] [package.metadata.rust-analyzer]
# This crate uses #[feature(rustc_private)] # This crate uses #[feature(rustc_private)]

View file

@ -191,7 +191,12 @@ impl MetadataCollector {
lints: BinaryHeap::<LintMetadata>::default(), lints: BinaryHeap::<LintMetadata>::default(),
applicability_info: FxHashMap::<String, ApplicabilityInfo>::default(), applicability_info: FxHashMap::<String, ApplicabilityInfo>::default(),
config: collect_configs(), config: collect_configs(),
clippy_project_root: clippy_dev::clippy_project_root(), clippy_project_root: std::env::current_dir()
.expect("failed to get current dir")
.ancestors()
.nth(1)
.expect("failed to get project root")
.to_path_buf(),
} }
} }