Skip to content

Commit 46ffb6a

Browse files
committed
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.
1 parent 27cc0db commit 46ffb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/deps.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub fn check(path: &Path, bad: &mut bool) {
241241
}
242242

243243
let toml = dir.path().join("Cargo.toml");
244-
*bad = *bad || !check_license(&toml);
244+
*bad = !check_license(&toml) || *bad;
245245
}
246246
assert!(saw_dir, "no vendored source");
247247
}

0 commit comments

Comments
 (0)