mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Add clippy_utils and if_chain to extern crate list
This commit is contained in:
parent
610381455c
commit
ea97a5a5d7
1 changed files with 10 additions and 1 deletions
|
@ -34,7 +34,16 @@ fn clippy_driver_path() -> PathBuf {
|
||||||
// as what we manually pass to `cargo` invocation
|
// as what we manually pass to `cargo` invocation
|
||||||
fn third_party_crates() -> String {
|
fn third_party_crates() -> String {
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
static CRATES: &[&str] = &["serde", "serde_derive", "regex", "clippy_lints", "syn", "quote"];
|
static CRATES: &[&str] = &[
|
||||||
|
"clippy_lints",
|
||||||
|
"clippy_utils",
|
||||||
|
"if_chain",
|
||||||
|
"quote",
|
||||||
|
"regex",
|
||||||
|
"serde",
|
||||||
|
"serde_derive",
|
||||||
|
"syn",
|
||||||
|
];
|
||||||
let dep_dir = cargo::TARGET_LIB.join("deps");
|
let dep_dir = cargo::TARGET_LIB.join("deps");
|
||||||
let mut crates: HashMap<&str, PathBuf> = HashMap::with_capacity(CRATES.len());
|
let mut crates: HashMap<&str, PathBuf> = HashMap::with_capacity(CRATES.len());
|
||||||
for entry in fs::read_dir(dep_dir).unwrap() {
|
for entry in fs::read_dir(dep_dir).unwrap() {
|
||||||
|
|
Loading…
Reference in a new issue