added derive clone
This commit is contained in:
parent
8981f5c551
commit
8a07d278bf
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue