Skip to content

Commit

Permalink
fix: add ?Sized bound to z_serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Sep 26, 2024
1 parent aec6cf3 commit 3cd2e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenoh-ext/src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait Deserialize: Sized {
}
}

pub fn z_serialize<T: Serialize>(t: &T) -> ZBytes {
pub fn z_serialize<T: Serialize + ?Sized>(t: &T) -> ZBytes {
let mut zbytes = ZBytes::new();
ZSerializer::new(&mut zbytes).serialize(t);
zbytes
Expand Down

0 comments on commit 3cd2e4f

Please sign in to comment.