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(),