mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-11 07:07:42 +00:00
44ac11efc7
Checking arch v0.1.0 (/home/rob/src/cloud-hypervisor/arch) error: field assignment outside of initializer for an instance created with Default::default() --> arch/src/x86_64/smbios.rs:174:9 | 174 | smbios_biosinfo.typ = BIOS_INFORMATION; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::field-reassign-with-default` implied by `-D warnings` note: consider initializing the variable with `x86_64::smbios::SmbiosBiosInfo { typ: BIOS_INFORMATION, length: mem::size_of::<SmbiosBiosInfo>() as u8, handle: handle, vendor: 1, version: 2, characteristics: PCI_SUPPORTED, characteristics_ext2: IS_VIRTUAL_MACHINE, ..Default::default() }` and removing relevant reassignments --> arch/src/x86_64/smbios.rs:173:9 | 173 | let mut smbios_biosinfo = SmbiosBiosInfo::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> |
||
---|---|---|
.. | ||
aarch64 | ||
x86_64 | ||
lib.rs |