From 0270ffaeec43e942a21ca00209c0e47339cefcf0 Mon Sep 17 00:00:00 2001 From: Gijs Burghoorn Date: Wed, 15 May 2024 16:44:01 +0200 Subject: [PATCH] fix(rust): Clippy Error for CPUID (#16241) --- crates/polars-utils/src/cpuid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/polars-utils/src/cpuid.rs b/crates/polars-utils/src/cpuid.rs index f7642e3e574c..7ad43b82ca42 100644 --- a/crates/polars-utils/src/cpuid.rs +++ b/crates/polars-utils/src/cpuid.rs @@ -21,7 +21,7 @@ fn detect_fast_bmi2() -> bool { // Hardcoded blacklist of known-bad AMD families. // We'll assume any future releases that support BMI2 have a // proper implementation. - !(family_id >= 0x15 && family_id <= 0x18) + !(0x15..=0x18).contains(&family_id) } else { true }