From cbdb6bd939fea04360d2a21fcc896b8bae4c8e31 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Sat, 1 Aug 2020 11:52:24 +1200 Subject: revert change to license check --- xtask/tests/tidy.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index 14f0c672d..d65a2acbc 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) { -- cgit v1.2.3