fix warnings and criterion in main

This commit is contained in:
Maple 2025-11-13 10:06:58 +01:00
commit 755e5c4747
15 changed files with 33 additions and 56 deletions

View file

@ -5,7 +5,7 @@ use v_byte_helpers::{IS_BIG_ENDIAN, ReadExtensions};
use super::{Result, RmcSerialize};
impl RmcSerialize for String{
fn deserialize(mut reader: &mut impl Read) -> Result<Self> {
fn deserialize(reader: &mut impl Read) -> Result<Self> {
let len: u16 = reader.read_struct(IS_BIG_ENDIAN)?;
if len == 0{
return Ok("".to_string());