virtio-devices: Automatically fix operator precedence clippy warning

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2025-01-06 18:09:49 +00:00
committed by Bo Chen
parent 21f05ebb4f
commit 2624f17ffe
9 changed files with 110 additions and 108 deletions
+1 -1
View File
@@ -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) {