summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vrrpv2.rs10
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))
+ }
)+
};
}