From 134744d2da138737ca38b30258037fae8685ff41 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Sun, 29 Sep 2024 18:20:44 +0200 Subject: [PATCH] fix: fix tests --- zenoh/src/api/bytes.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zenoh/src/api/bytes.rs b/zenoh/src/api/bytes.rs index 49ab1f4802..0ca8b2245e 100644 --- a/zenoh/src/api/bytes.rs +++ b/zenoh/src/api/bytes.rs @@ -141,7 +141,10 @@ impl ZBytes { /// /// See [`ZBytesWriter`] on how to chain the serialization of different types into a single [`ZBytes`]. pub fn writer() -> ZBytesWriter { - Self::new().into() + ZBytesWriter { + zbuf: ZBuf::empty(), + vec: Vec::new(), + } } /// Return an iterator on raw bytes slices contained in the [`ZBytes`].