diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index 14f0c672db..d65a2acbca 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs @@ -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::>(); licenses.sort(); licenses.dedup(); - assert_eq!( - licenses.iter().filter(|license| !expected.contains(license)).collect::>(), - Vec::<&&str>::new() - ); + assert_eq!(licenses, expected); } fn check_todo(path: &Path, text: &str) {