Skip to content

Commit

Permalink
fix(rust): cargo clippy for uleb128 safety comment
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed May 21, 2024
1 parent 30ba423 commit 1e57c09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/polars-parquet/src/parquet/encoding/uleb128.rs
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 1e57c09

Please sign in to comment.