diff --git a/src/idx/chunk.rs b/src/idx/chunk.rs index 53eedc7..f7aa151 100644 --- a/src/idx/chunk.rs +++ b/src/idx/chunk.rs @@ -96,7 +96,7 @@ impl Chunk { /// Reintepret a slice of `Chunk`s to a slice of `u64`. This is efficient, but relies /// on unsafe code. pub fn slice_as_u64s(chunks: &[Chunk]) -> &[ULE] { - let ptr = chunks.as_ptr() as *const Chunk; + let ptr = chunks.as_ptr(); let slice: &[ULE] = unsafe { let ptr = ptr as *const ULE; std::slice::from_raw_parts(