We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_map_or
1 parent 125acf8 commit 99ea407Copy full SHA for 99ea407
kvm-ioctls/src/ioctls/vcpu.rs
@@ -3584,12 +3584,12 @@ mod tests {
3584
.as_slice()
3585
.iter()
3586
.find(|entry| entry.function == 1)
3587
- .map_or(false, |entry| entry.ecx & (1 << 5) != 0);
+ .is_some_and(|entry| entry.ecx & (1 << 5) != 0);
3588
let supports_vmmcall = cpuid
3589
3590
3591
.find(|entry| entry.function == 0x8000_0001)
3592
- .map_or(false, |entry| entry.ecx & (1 << 2) != 0);
+ .is_some_and(|entry| entry.ecx & (1 << 2) != 0);
3593
#[rustfmt::skip]
3594
let code = if supports_vmcall {
3595
[
0 commit comments