mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 07:51:16 +00:00
virtio-devices: net: Remove unnecessary Clone for NetCtrl
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
bd90938f08
commit
2f2bd927b3
@ -54,15 +54,6 @@ pub struct NetCtrl {
|
|||||||
pub queue: Queue,
|
pub queue: Queue,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::clone::Clone for NetCtrl {
|
|
||||||
fn clone(&self) -> Self {
|
|
||||||
NetCtrl {
|
|
||||||
queue_evt: self.queue_evt.try_clone().unwrap(),
|
|
||||||
queue: self.queue.clone(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[derive(Debug, Clone, Copy, Default)]
|
#[derive(Debug, Clone, Copy, Default)]
|
||||||
pub struct ControlHeader {
|
pub struct ControlHeader {
|
||||||
|
Loading…
Reference in New Issue
Block a user