Skip to content

Commit b75f204

Browse files
committed
Don't error on clippy.toml of dependencies
1 parent cc35165 commit b75f204

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/driver.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,9 @@ pub fn main() {
317317
};
318318

319319
// this check ensures that dependencies are built but not linted and the final
320-
// crate is
321-
// linted but not built
320+
// crate is linted but not built
322321
let clippy_enabled = env::var("CLIPPY_TESTS").ok().map_or(false, |val| val == "true")
323-
|| arg_value(&orig_args, "--emit", |val| val.split(',').any(|e| e == "metadata")).is_some();
322+
|| arg_value(&orig_args, "--cap-lints", |val| val == "allow").is_none();
324323

325324
if clippy_enabled {
326325
args.extend_from_slice(&["--cfg".to_owned(), r#"feature="cargo-clippy""#.to_owned()]);

0 commit comments

Comments
 (0)