mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Use Default::default() for transitioning to VirtioCommon
In order to simplify the transition to VirtioCommon and to avoid needing to set empty fields derive Default for VirtioCommon. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -338,7 +338,7 @@ where
|
||||
Ok(Vsock {
|
||||
common: VirtioCommon {
|
||||
avail_features,
|
||||
acked_features: 0u64,
|
||||
..Default::default()
|
||||
},
|
||||
id,
|
||||
cid,
|
||||
|
||||
Reference in New Issue
Block a user