derive Clone for Agent

This can be required when dealing with async code. I'm happy for you to
show me other ways if you think it's not necessary.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-09-11 16:25:20 +02:00
parent b6369741cd
commit b1e8b9ee58
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -345,6 +345,7 @@ impl ClientBuilder<'_> {
} }
} }
#[derive(Clone)]
pub struct Agent { pub struct Agent {
sender_tx: mpsc::UnboundedSender<Packet>, sender_tx: mpsc::UnboundedSender<Packet>,
default_nick: Rc<RefCell<String>>, default_nick: Rc<RefCell<String>>,