From 19bcc6bf5d0aa4cf6dc58e66de37b42ac8773b32 Mon Sep 17 00:00:00 2001 From: 0x471 <0x471@protonmail.com> Date: Sun, 29 Dec 2024 14:45:26 +0000 Subject: [PATCH] fix: this time linter is happy --- examples/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/src/lib.rs b/examples/src/lib.rs index a7a757db0..ad502209e 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -143,7 +143,8 @@ mod test { if let Some(file_name) = normalized_path.file_name().and_then(OsStr::to_str) { if forbidden_files_general.contains(&file_name) { - panic!( + assert!( + !forbidden_files_general.contains(&file_name), "Forbidden file `.gitignore` found in examples directory: {}", normalized_path.display() );