Rollup merge of #61096 - ehuss:tidy-license-short-circuit, r=Centril
tidy: don't short-circuit on license error If there is more than one license error, tidy would only print the first error. This changes it so that all license errors are printed.
This commit is contained in:
commit
835281fb04
|
@ -244,7 +244,7 @@ pub fn check(path: &Path, bad: &mut bool) {
|
|||
}
|
||||
|
||||
let toml = dir.path().join("Cargo.toml");
|
||||
*bad = *bad || !check_license(&toml);
|
||||
*bad = !check_license(&toml) || *bad;
|
||||
}
|
||||
assert!(saw_dir, "no vendored source");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue