From d1731a8825907cc2590b10cb0bce8e4a21c5471a Mon Sep 17 00:00:00 2001 From: Wojciech Graj Date: Wed, 27 Mar 2024 22:23:58 +0100 Subject: [PATCH] Fix benchmarks. --- bench/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bench/src/lib.rs b/bench/src/lib.rs index c6ca016..ca3ae30 100644 --- a/bench/src/lib.rs +++ b/bench/src/lib.rs @@ -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, @@ -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, @@ -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,