Skip to content

Commit

Permalink
Fix benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Mar 27, 2024
1 parent 7750d0b commit d1731a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ mod bench {

#[derive(Debug, Protocol, PartialEq)]
struct V {
#[protocol(value = "self.data.len() as u8")]
#[protocol(write_value = "self.data.len() as u8")]
count: u8,
#[protocol(length = "count as usize")]
data: Vec<u8>,
Expand Down Expand Up @@ -230,7 +230,7 @@ mod bench {
use super::*;

#[derive(Debug, Protocol, PartialEq)]
#[protocol(discriminant = "u8")]
#[protocol(discriminant_type = "u8")]
enum E {
V0 = 0,
V1 = 1,
Expand Down Expand Up @@ -264,7 +264,7 @@ mod bench {
use super::*;

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

0 comments on commit d1731a8

Please sign in to comment.