From b1e8b9ee58c82cd1ae243d1c257d3006d23354dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 11 Sep 2019 16:25:20 +0200 Subject: [PATCH] derive Clone for Agent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index a5b6e337..7731db56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -345,6 +345,7 @@ impl ClientBuilder<'_> { } } +#[derive(Clone)] pub struct Agent { sender_tx: mpsc::UnboundedSender, default_nick: Rc>,