mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
4e0dc5203a
These structs directly embed another struct and then implement ByteValued on that struct to implement ByteValued for the inner struct. As such the inner struct is never directly accessed so to avoid the dead code analysis mark this as allowed. Beta clippy fix: warning: field `0` is never read --> arch/src/x86_64/mod.rs:129:32 | 129 | struct MemmapTableEntryWrapper(hvm_memmap_table_entry); | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^ | | | field in this struct | = note: `MemmapTableEntryWrapper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 129 | struct MemmapTableEntryWrapper(()); | Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |