Skip to content

Commit e01b695

Browse files
committed
Fixed clippy warning
1 parent 29a3b97 commit e01b695

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl CpuidDB for RunningCpuidDB {
9595
0..=0x3FFFFFFF => leaf <= self.basic_max,
9696
0x40000000..=0x4fffffff => self
9797
.hypervisor_max
98-
.map_or(false, |max| leaf - 0x40000000 <= max),
98+
.is_some_and(|max| leaf - 0x40000000 <= max),
9999
0x80000000..=0x8fffffff => leaf - 0x80000000 <= self.extended_max,
100100
_ => false,
101101
} {

0 commit comments

Comments
 (0)