revert change to license check

This commit is contained in:
Zac Pullar-Strecker 2020-08-01 11:52:24 +12:00
parent 4c745d219f
commit cbdb6bd939

View File

@ -53,11 +53,9 @@ fn rust_files_are_tidy() {
fn check_licenses() {
let expected = "
0BSD OR MIT OR Apache-2.0
Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
Apache-2.0 OR BSL-1.0
Apache-2.0 OR MIT
Apache-2.0/MIT
Apache-2.0
BSD-2-Clause
BSD-3-Clause
CC0-1.0
@ -84,10 +82,7 @@ Zlib
.collect::<Vec<_>>();
licenses.sort();
licenses.dedup();
assert_eq!(
licenses.iter().filter(|license| !expected.contains(license)).collect::<Vec<_>>(),
Vec::<&&str>::new()
);
assert_eq!(licenses, expected);
}
fn check_todo(path: &Path, text: &str) {