mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-07 10:15:45 +00:00
error: field assignment outside of initializer for an instance created with Default::default() --> virtio-devices/src/mem.rs:496:9 | 496 | resp.resp_type = resp_type; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: consider initializing the variable with `mem::VirtioMemResp { resp_type: resp_type, ..Default::default() }` and removing relevant reassignments --> virtio-devices/src/mem.rs:495:9 | 495 | let mut resp = VirtioMemResp::default(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |