From 1e57c0953f1895bd6f5b9e2401ae067d9688e05a Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Tue, 21 May 2024 15:53:19 +0200 Subject: [PATCH] fix(rust): cargo clippy for uleb128 safety comment --- crates/polars-parquet/src/parquet/encoding/uleb128.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/polars-parquet/src/parquet/encoding/uleb128.rs b/crates/polars-parquet/src/parquet/encoding/uleb128.rs index 7df8d7b8d441..e629e279a5c9 100644 --- a/crates/polars-parquet/src/parquet/encoding/uleb128.rs +++ b/crates/polars-parquet/src/parquet/encoding/uleb128.rs @@ -1,7 +1,9 @@ // Reads an uleb128 encoded integer with at most 56 bits (8 bytes with 7 bits worth of payload each). /// Returns the integer and the number of bytes that made up this integer. /// If the returned length is bigger than 8 this means the integer required more than 8 bytes and the remaining bytes need to be read sequentially and combined with the return value. -/// Safety: `data` needs to contain at least 8 bytes. +/// +/// # Safety +/// `data` needs to contain at least 8 bytes. #[target_feature(enable = "bmi2")] #[cfg(target_feature = "bmi2")] pub unsafe fn decode_uleb_bmi2(data: &[u8]) -> (u64, usize) {