Skip to content

Commit 4a88460

Browse files
nyuriktgross35
authored andcommitted
chore: lint ctest-test crate
run `cargo clippy --all-targets` on `ctest-test`, and fix all default issues. Also added a generic
1 parent d00adf4 commit 4a88460

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

ctest-test/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ test = false
3737
unused_qualifications = "allow"
3838

3939
[lints.clippy]
40-
# FIXME(clippy): fix these
41-
match_like_matches_macro = "allow"
42-
eq_op = "allow"

ctest-test/build.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,5 @@ fn t1_volatile(i: ctest::VolatileItemKind) -> bool {
103103
}
104104

105105
fn t1_arrays(n: &str, i: usize) -> bool {
106-
match n {
107-
"T1r" | "T1s" | "T1t" | "T1v" if i == 0 => true,
108-
_ => false,
109-
}
106+
i == 0 && matches!(n, "T1r" | "T1s" | "T1t" | "T1v")
110107
}

ctest-test/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
// src/** is mostly dummy files
2+
#![allow(clippy::style, clippy::correctness)]
3+
14
pub mod t1;
25
pub mod t2;

0 commit comments

Comments
 (0)