From c9268e6a601f43f5a09394bd685178f8091542f9 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Thu, 27 Jul 2023 15:44:55 +0200 Subject: [PATCH] Remove unnecessary cast --- src/idx/chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(