summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2025-09-29 02:04:11 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2025-09-29 02:04:11 +0530
commit0d00405fd4b5ed4a3759c7ae122058bc7adbbddd (patch)
treed9d9504d37fec8745ef64d3ba87bc0a1463dac5e
parentb5817130cf2869e70856510cc3dc424503df8d4f (diff)
Indent a bit.HEADmain
-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))
+ }
)+
};
}