Skip to content

Commit cbdb6bd

Browse files
committed
revert change to license check
1 parent 4c745d2 commit cbdb6bd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

xtask/tests/tidy.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ fn rust_files_are_tidy() {
5353
fn check_licenses() {
5454
let expected = "
5555
0BSD OR MIT OR Apache-2.0
56-
Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
5756
Apache-2.0 OR BSL-1.0
5857
Apache-2.0 OR MIT
5958
Apache-2.0/MIT
60-
Apache-2.0
6159
BSD-2-Clause
6260
BSD-3-Clause
6361
CC0-1.0
@@ -84,10 +82,7 @@ Zlib
8482
.collect::<Vec<_>>();
8583
licenses.sort();
8684
licenses.dedup();
87-
assert_eq!(
88-
licenses.iter().filter(|license| !expected.contains(license)).collect::<Vec<_>>(),
89-
Vec::<&&str>::new()
90-
);
85+
assert_eq!(licenses, expected);
9186
}
9287

9388
fn check_todo(path: &Path, text: &str) {

0 commit comments

Comments
 (0)