From e619fe6b0107339202bb1c90f5e3389406a14bee Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 7 Feb 2020 10:00:12 +0000 Subject: [PATCH] vhost_user_net: Remove "Clone" implementation There is no need for this and it could lead to inadvertent issues in the future. Signed-off-by: Rob Bradford --- vhost_user_net/src/lib.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/vhost_user_net/src/lib.rs b/vhost_user_net/src/lib.rs index 573695971..bed2ffab6 100644 --- a/vhost_user_net/src/lib.rs +++ b/vhost_user_net/src/lib.rs @@ -104,22 +104,6 @@ pub struct VhostUserNetBackend { queue_size: u16, } -impl std::clone::Clone for VhostUserNetBackend { - fn clone(&self) -> Self { - VhostUserNetBackend { - mem: self.mem.clone(), - vring_worker: self.vring_worker.clone(), - kill_evt: self.kill_evt.try_clone().unwrap(), - taps: self.taps.clone(), - rxs: self.rxs.clone(), - txs: self.txs.clone(), - rx_tap_listenings: self.rx_tap_listenings.clone(), - num_queues: self.num_queues, - queue_size: self.queue_size, - } - } -} - impl VhostUserNetBackend { /// Create a new virtio network device with the given TAP interface. pub fn new_with_tap(taps: Vec, num_queues: usize, queue_size: u16) -> Result {