Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Jul 27, 2023
1 parent 317a8f6 commit c9268e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idx/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<const D: usize> Chunk<D> {
/// Reintepret a slice of `Chunk<D>`s to a slice of `u64`. This is efficient, but relies
/// on unsafe code.
pub fn slice_as_u64s(chunks: &[Chunk<D>]) -> &[ULE] {
let ptr = chunks.as_ptr() as *const Chunk<D>;
let ptr = chunks.as_ptr();
let slice: &[ULE] = unsafe {
let ptr = ptr as *const ULE;
std::slice::from_raw_parts(
Expand Down

0 comments on commit c9268e6

Please sign in to comment.