Skip to content

Commit

Permalink
Fix benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Nov 10, 2024
1 parent 9fabdcc commit 1ec7c26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ mod vec {

#[derive(Debug, ProtocolRead, ProtocolWrite, PartialEq)]
struct V {
#[protocol(write_value = "self.data.len() as u8")]
#[protocol(write_value = self.data.len() as u8)]
count: u8,
#[protocol(tag = "count as usize")]
#[protocol(tag = count as usize)]
data: Vec<u8>,
}

Expand Down Expand Up @@ -85,7 +85,7 @@ mod enum_ {
use bin_proto::{ProtocolNoCtx, ProtocolRead, ProtocolWrite};

#[derive(Debug, ProtocolRead, ProtocolWrite, PartialEq)]
#[protocol(discriminant_type = "u8")]
#[protocol(discriminant_type = u8)]
enum E {
V0 = 0,
V1 = 1,
Expand Down Expand Up @@ -164,7 +164,7 @@ mod ipv4 {
use bin_proto::{ProtocolNoCtx, ProtocolRead, ProtocolWrite};

#[derive(Debug, ProtocolRead, ProtocolWrite, PartialEq)]
#[protocol(discriminant_type = "u8")]
#[protocol(discriminant_type = u8)]
#[protocol(bits = 4)]
enum Version {
V4 = 4,
Expand Down

0 comments on commit 1ec7c26

Please sign in to comment.