Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Oct 21, 2024
1 parent 5dda95a commit 3013b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/polars-arrow/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ unsafe impl<T: Sync + Send> Sync for SharedStorage<T> {}

impl<T> SharedStorage<T> {
pub fn from_static(slice: &'static [T]) -> Self {
#[expect(clippy::manual_slice_size_calculation)]
let length_in_bytes = slice.len() * size_of::<T>();
let ptr = slice.as_ptr().cast_mut();
let inner = SharedStorageInner {
Expand Down

0 comments on commit 3013b36

Please sign in to comment.