diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2025-09-29 02:04:11 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2025-09-29 02:04:11 +0530 |
commit | 0d00405fd4b5ed4a3759c7ae122058bc7adbbddd (patch) | |
tree | d9d9504d37fec8745ef64d3ba87bc0a1463dac5e | |
parent | b5817130cf2869e70856510cc3dc424503df8d4f (diff) |
-rw-r--r-- | src/vrrpv2.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index 3e714fa..57f692a 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -108,11 +108,11 @@ impl VRRPv2 { macro_rules! read_be { ( $( $fname:ident => $type:ty ),+ $(,)? ) => { $( - fn $fname(cursor: &mut Cursor<&[u8]>) -> io::Result<$type> { - let mut buffer = [0; size_of::<$type>()]; - cursor.read_exact(&mut buffer)?; - Ok(<$type>::from_be_bytes(buffer)) - } + fn $fname(cursor: &mut Cursor<&[u8]>) -> io::Result<$type> { + let mut buffer = [0; size_of::<$type>()]; + cursor.read_exact(&mut buffer)?; + Ok(<$type>::from_be_bytes(buffer)) + } )+ }; } |