Add clippy_utils and if_chain to extern crate list

This commit is contained in:
Cameron Steffen 2021-07-23 17:00:00 -05:00
parent 610381455c
commit ea97a5a5d7

View file

@ -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() {