diff --git a/src/encoding.rs b/src/encoding.rs index 52781e774..e4d2aa274 100644 --- a/src/encoding.rs +++ b/src/encoding.rs @@ -264,7 +264,7 @@ pub fn encoded_len_varint(value: u64) -> usize { ((((value | 1).leading_zeros() ^ 63) * 9 + 73) / 64) as usize } -#[derive(Clone, Copy, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq)] #[repr(u8)] pub enum WireType { Varint = 0,