Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FssAy committed Mar 8, 2024
1 parent 1c54aca commit e0b6abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/deserialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::num::ParseIntError;
use std::str::FromStr;
use std::string::FromUtf8Error;
use bqsp::*;
use deserializer::Deserializer;
use deserializer::BoxDeserializer;

#[repr(u16)]
/// Represents which header data type number corresponds to which Payload variant
Expand Down Expand Up @@ -51,10 +51,10 @@ enum DesError {
UserNotValidAge(ParseIntError),
}

impl Deserializer for Payload {
impl BoxDeserializer for Payload {
type Error = DesError;

fn deserialize(data: BoxPack) -> Result<Self, Self::Error> where Self: Sized {
fn deserialize_box(data: BoxPack) -> Result<Self, Self::Error> where Self: Sized {
let box_type = DataType::try_from(data.header.get_data_type())?;

let payload = match box_type {
Expand Down

0 comments on commit e0b6abf

Please sign in to comment.