Skip to content

Commit 16ad9d1

Browse files
committed
fix(cksum): fix clippy warnings in hardware tests
1 parent 5748063 commit 16ad9d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/uu/cksum/src/hardware.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ mod tests {
120120
#[test]
121121
fn test_cpu_features_detection() {
122122
let features = CpuFeatures::detect();
123-
// Features should be valid booleans
124-
assert!(features.avx512 || !features.avx512);
125-
assert!(features.avx2 || !features.avx2);
126-
assert!(features.pclmul || !features.pclmul);
127-
assert!(features.vmull || !features.vmull);
123+
// Features should be valid booleans - just verify they can be detected
124+
let _ = features.avx512;
125+
let _ = features.avx2;
126+
let _ = features.pclmul;
127+
let _ = features.vmull;
128128
}
129129

130130
#[test]

0 commit comments

Comments
 (0)