mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 22:25:18 +00:00
0d3c5c966b
error: all if blocks contain the same code at the start --> virtio-devices/src/mem.rs:508:9 | 508 | / if plug { 509 | | let handlers = self.dma_mapping_handlers.lock().unwrap(); | |_____________________________________________________________________^ | = note: `-D clippy::branches-sharing-code` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code help: consider moving the start statements out like this | 508 | let handlers = self.dma_mapping_handlers.lock().unwrap(); 509 | if plug { | Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |