[Yunq] Rust tests for nested messages.

This commit is contained in:
Drew Galbraith 2024-08-29 23:39:30 -07:00
parent f94f56f9ec
commit 72e5d8c618
3 changed files with 56 additions and 3 deletions

View file

@ -58,7 +58,7 @@ pub fn serialize_repeated_message<T: YunqMessage, const N: usize>(
caps: &mut Vec<z_cap_t>,
) -> Result<usize, ZError> {
for item in data {
offset = item.serialize(buf, offset, caps)?;
offset += item.serialize(buf, offset, caps)?;
}
Ok(offset)
}