mirror of
https://github.com/fluencelabs/interface-types
synced 2025-06-25 04:31:36 +00:00
add version to interfaces
This commit is contained in:
@ -72,13 +72,7 @@ where
|
||||
W: Write,
|
||||
{
|
||||
fn to_bytes(&self, writer: &mut W) -> io::Result<()> {
|
||||
// Size first.
|
||||
writer.write_all(&[self.len() as u8])?;
|
||||
|
||||
// Then the string.
|
||||
writer.write_all(self.as_bytes())?;
|
||||
|
||||
Ok(())
|
||||
self.as_str().to_bytes(writer)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user