Skip to content

Commit 90454c8

Browse files
committed
virtio/queue: Allow clippy::unnecessary_map_or
clippy suggests replacing map_or with is_none_or, which is an unstable library feature at time of commit. Silence this warning and allow the use of map_or for the time being. Signed-off-by: Tyler Fanelli <[email protected]>
1 parent 6607fe2 commit 90454c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/devices/src/virtio/queue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ impl Queue {
378378
min(self.size, self.max_size)
379379
}
380380

381+
#[allow(clippy::unnecessary_map_or)]
381382
pub fn is_valid(&self, mem: &GuestMemoryMmap) -> bool {
382383
let queue_size = u64::from(self.actual_size());
383384
let desc_table = self.desc_table;

0 commit comments

Comments
 (0)