From 5fe0cc6c54c03ede8c18e64b54dc433210e91f82 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 11 Dec 2024 18:38:31 +0100 Subject: [PATCH] fix: remove redundant clone --- zenoh/src/api/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh/src/api/session.rs b/zenoh/src/api/session.rs index bbd40dff0..3df4b0725 100644 --- a/zenoh/src/api/session.rs +++ b/zenoh/src/api/session.rs @@ -2176,7 +2176,7 @@ impl SessionInner { ), ext_tstamp: None, ext_nodeid: push::ext::NodeIdType::DEFAULT, - payload: match put.clone() { + payload: match put { Some(put) => PushBody::Put(Put { timestamp, encoding: put.encoding.into(),