Removed surplus zero byte
This commit is contained in:
parent
ceb4dc035f
commit
8e371bc6a2
2 changed files with 1 additions and 2 deletions
|
|
@ -38,7 +38,6 @@ impl Encoder<HostMessage> for ProtocolCodec {
|
|||
fn encode(&mut self, item: HostMessage, dst: &mut BytesMut) -> Result<(), Self::Error> {
|
||||
let msg_bytes = to_stdvec_cobs(&item).unwrap();
|
||||
dst.put(msg_bytes.as_slice());
|
||||
dst.put_u8(0);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue