mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Automatically fix operator precedence clippy warning
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
@@ -210,7 +210,7 @@ pub struct VirtioCommon {
|
||||
|
||||
impl VirtioCommon {
|
||||
pub fn feature_acked(&self, feature: u64) -> bool {
|
||||
self.acked_features & 1 << feature == 1 << feature
|
||||
self.acked_features & (1 << feature) == 1 << feature
|
||||
}
|
||||
|
||||
pub fn ack_features(&mut self, value: u64) {
|
||||
|
||||
Reference in New Issue
Block a user