From 4a88460dc95eeccd62002c37ddde266027b22671 Mon Sep 17 00:00:00 2001
From: Yuri Astrakhan <YuriAstrakhan@gmail.com>
Date: Mon, 14 Apr 2025 23:29:09 -0400
Subject: [PATCH] chore: lint `ctest-test` crate

run `cargo clippy --all-targets` on `ctest-test`, and fix all default issues. Also added a generic
---
 ctest-test/Cargo.toml | 3 ---
 ctest-test/build.rs   | 5 +----
 ctest-test/src/lib.rs | 3 +++
 3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/ctest-test/Cargo.toml b/ctest-test/Cargo.toml
index f0429bbeef0f8..5b76300799acc 100644
--- a/ctest-test/Cargo.toml
+++ b/ctest-test/Cargo.toml
@@ -37,6 +37,3 @@ test = false
 unused_qualifications = "allow"
 
 [lints.clippy]
-# FIXME(clippy): fix these
-match_like_matches_macro = "allow"
-eq_op = "allow"
diff --git a/ctest-test/build.rs b/ctest-test/build.rs
index 822f3ea73737c..b67c2eaaa4639 100644
--- a/ctest-test/build.rs
+++ b/ctest-test/build.rs
@@ -103,8 +103,5 @@ fn t1_volatile(i: ctest::VolatileItemKind) -> bool {
 }
 
 fn t1_arrays(n: &str, i: usize) -> bool {
-    match n {
-        "T1r" | "T1s" | "T1t" | "T1v" if i == 0 => true,
-        _ => false,
-    }
+    i == 0 && matches!(n, "T1r" | "T1s" | "T1t" | "T1v")
 }
diff --git a/ctest-test/src/lib.rs b/ctest-test/src/lib.rs
index 7c749733dc655..d54b4ede501b1 100644
--- a/ctest-test/src/lib.rs
+++ b/ctest-test/src/lib.rs
@@ -1,2 +1,5 @@
+// src/** is mostly dummy files
+#![allow(clippy::style, clippy::correctness)]
+
 pub mod t1;
 pub mod t2;