mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: remove unnecessary parentheses
Cargo fuzz build report an warning: warning: unnecessary parentheses around closure body --> virtio-devices/src/iommu.rs:578:41 | 578 |.retain(|&x, _| (x < req.virt_start || x > req.virt_end)); | ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 578 -.retain(|&x, _| (x < req.virt_start || x > req.virt_end)); 578 +.retain(|&x, _| x < req.virt_start || x > req.virt_end); | warning: `virtio-devices` (lib) generated 1 warning (run `cargo fix --lib -p virtio-devices` to apply 1 suggestion) Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Muminul Islam Russell
parent
0659eaeba1
commit
b268e88ba3
@@ -575,7 +575,7 @@ impl Request {
|
||||
.get_mut(&domain_id)
|
||||
.unwrap()
|
||||
.mappings
|
||||
.retain(|&x, _| (x < req.virt_start || x > req.virt_end));
|
||||
.retain(|&x, _| x < req.virt_start || x > req.virt_end);
|
||||
}
|
||||
VIRTIO_IOMMU_T_PROBE => {
|
||||
if desc_size_left != size_of::<VirtioIommuReqProbe>() {
|
||||
|
||||
Reference in New Issue
Block a user