From 2620ff82234baadb3fbae52066ac74ead8452864 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Fri, 6 Sep 2024 16:51:17 +0200 Subject: [PATCH] fix: publisher should not be clonable (#1370) --- zenoh/src/api/publisher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh/src/api/publisher.rs b/zenoh/src/api/publisher.rs index 02cfb406c9..2b13ee32af 100644 --- a/zenoh/src/api/publisher.rs +++ b/zenoh/src/api/publisher.rs @@ -134,7 +134,7 @@ impl std::fmt::Debug for PublisherRef<'_> { /// subscriber.stream().map(Ok).forward(publisher).await.unwrap(); /// # } /// ``` -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct Publisher<'a> { pub(crate) session: SessionRef<'a>, pub(crate) id: Id,