fix warnings and criterion in main
This commit is contained in:
parent
f05be88711
commit
755e5c4747
15 changed files with 33 additions and 56 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue