From 4d2d54c64ba6f7c6df1df7adf4bccf02bf385354 Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Fri, 15 Mar 2024 17:07:49 +0100 Subject: [PATCH] Fix code fmt --- commons/zenoh-codec/src/core/zint.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commons/zenoh-codec/src/core/zint.rs b/commons/zenoh-codec/src/core/zint.rs index 5a603296ce..eefea64b38 100644 --- a/commons/zenoh-codec/src/core/zint.rs +++ b/commons/zenoh-codec/src/core/zint.rs @@ -117,7 +117,9 @@ where // the maximum number of bytes a VLE can take once encoded. // I.e.: x is shifted 7 bits to the right every iteration, // the loop is at most VLE_LEN iterations. - unsafe { *buffer.get_unchecked_mut(len) = (x as u8) | 0x80; } + unsafe { + *buffer.get_unchecked_mut(len) = (x as u8) | 0x80; + } len += 1; x >>= 7; } @@ -125,7 +127,9 @@ where // the maximum number of bytes a VLE can take once encoded. // I.e.: x is shifted 7 bits to the right every iteration, // the loop is at most VLE_LEN iterations. - unsafe { *buffer.get_unchecked_mut(len) = x as u8; } + unsafe { + *buffer.get_unchecked_mut(len) = x as u8; + } len + 1 })?; Ok(())