Skip to content

Commit

Permalink
fix(rust): Clippy Error for CPUID (#16241)
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite authored and MarcoGorelli committed May 15, 2024
1 parent 8587027 commit a2e9278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-utils/src/cpuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a2e9278

Please sign in to comment.