mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-31 18:15:20 +00:00
18012d9ee8
error: usage of `contains_key` followed by `insert` on a `BTreeMap` --> virtio-devices/src/iommu.rs:439:17 | 439 | / if !mappings.contains_key(&domain) { 440 | | mappings.insert(domain, BTreeMap::new()); 441 | | } | |_________________^ help: try this: `mappings.entry(domain).or_insert_with(|| BTreeMap::new());` | = note: `-D clippy::map-entry` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |