Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Sep 29, 2024
1 parent 86143b5 commit 134744d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zenoh/src/api/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down

0 comments on commit 134744d

Please sign in to comment.