Skip to content

Commit c9cceaf

Browse files
RuoqingHeandreeaflorescu
authored andcommitted
clippy: Fix precedence
Fix `precedence` reported by rust toolchain 1.85.0. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent 99ea407 commit c9cceaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kvm-ioctls/src/ioctls/vcpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3476,7 +3476,7 @@ mod tests {
34763476
let mut kvi: kvm_vcpu_init = kvm_vcpu_init::default();
34773477
vm.get_preferred_target(&mut kvi)
34783478
.expect("Cannot get preferred target");
3479-
kvi.features[0] |= 1 << KVM_ARM_VCPU_PSCI_0_2 | 1 << KVM_ARM_VCPU_PMU_V3;
3479+
kvi.features[0] |= (1 << KVM_ARM_VCPU_PSCI_0_2) | (1 << KVM_ARM_VCPU_PMU_V3);
34803480
vcpu.vcpu_init(&kvi).unwrap();
34813481
vcpu.has_device_attr(&dist_attr).unwrap();
34823482
vcpu.set_device_attr(&dist_attr).unwrap();

0 commit comments

Comments
 (0)