added derive clone

This commit is contained in:
michael-bailey 2020-07-17 20:52:28 +01:00
parent 8981f5c551
commit 8a07d278bf
1 changed files with 2 additions and 4 deletions

View File

@ -14,8 +14,8 @@ use regex::Regex;
use crossbeam::{channel, Sender, Receiver, TryRecvError};
use crossbeam_channel::unbounded;
pub struct Client<'client_lifetime>{
#[derive(Clone)]
pub struct Client<'client_lifetime> {
connected: bool,
stream: Arc<TcpStream>,
uuid: String,
@ -70,8 +70,6 @@ impl<'a> Client<'a> {
match self.rx_channel.try_recv() {
/*command is on the channel*/
Ok(command) => {
let a = command.clone();
match command {